mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 00:24:13 +00:00
Slightly improve the error message when a stats.pickle file cannot be read.
This commit is contained in:
parent
2c1368312e
commit
702fe87b7d
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user