about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-11-01 14:47:15 +0100
committerhut <hut@lavabit.com>2010-11-01 14:53:59 +0100
commita92f6409ab3a5d9bcf87639e5eedaf7c0c483eb6 (patch)
tree5490598edaee452299ce5615bb266ac7b238d05f
parentdad0644f8819521c26739c185254f6edb36746ce (diff)
downloadranger-a92f6409ab3a5d9bcf87639e5eedaf7c0c483eb6.tar.gz
core.main: add debug info
-rw-r--r--ranger/core/main.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index c488dc5c..ade3bab5 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -89,14 +89,20 @@ def main():
 	except SystemExit as error:
 		return error.args[0]
 	finally:
+		if crash_traceback:
+			filepath = fm.env.cf.path if fm.env.cf else "None"
 		try:
 			fm.ui.destroy()
 		except (AttributeError, NameError):
 			pass
 		if crash_traceback:
+			print("Ranger version: %s, executed with python %s" %
+					(ranger.__version__, sys.version.split()[0]))
+			print("Locale: %s" % '.'.join(str(s) for s in locale.getlocale()))
+			print("Current file: %s" % filepath)
 			print(crash_traceback)
 			print("Ranger crashed.  " \
-					"Please report this (including the traceback) at:")
+				"Please report this traceback at:")
 			print("http://savannah.nongnu.org/bugs/?group=ranger&func=additem")
 			return 1
 		return 0