summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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