From: david-sarah Date: Tue, 3 Jul 2012 14:45:22 +0000 (+0000) Subject: Slightly improve the error message when a stats.pickle file cannot be read. X-Git-Tag: allmydata-tahoe-1.10a1~69 X-Git-Url: https://git.rkrishnan.org/frontends/specifications/banana.xhtml?a=commitdiff_plain;h=702fe87b7d7219de14edc7467ff60e43a3aa83e3;p=tahoe-lafs%2Ftahoe-lafs.git Slightly improve the error message when a stats.pickle file cannot be read. --- diff --git a/src/allmydata/stats.py b/src/allmydata/stats.py index ea0a7f85..7db323ba 100644 --- a/src/allmydata/stats.py +++ b/src/allmydata/stats.py @@ -256,7 +256,8 @@ class PickleStatsGatherer(StdOutStatsGatherer): try: self.gathered_stats = pickle.load(f) except Exception: - print ("Error while attempting to load pickle file %s.\nYou may need to delete this file.\n" % + print ("Error while attempting to load pickle file %s.\n" + "You may need to restore this file from a backup, or delete it if no backup is available.\n" % quote_output(os.path.abspath(self.picklefile))) raise f.close()