summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@hut.pm>2018-01-24 21:21:49 +0100
committerhut <hut@hut.pm>2018-01-24 21:21:49 +0100
commit4bb5e4931bf5ccbbc3d9f71e516d607415b7baa7 (patch)
tree9794d49d871400734e0befc2b3626fa195a6b1b5
parentf186e8877b360e0b523de75781c8f1d23301d350 (diff)
downloadranger-4bb5e4931bf5ccbbc3d9f71e516d607415b7baa7.tar.gz
config.commands: clearer error message
-rwxr-xr-xranger/config/commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 7d690b4a..2450c1c5 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -922,7 +922,8 @@ class eval_(Command):
                 if result and not quiet:
                     p(result)
         except Exception as err:  # pylint: disable=broad-except
-            p(err)
+            fm.notify("The error `%s` was caused by evaluating the "
+                      "following code: `%s`" % (err, code), bad=True)
 
 
 class rename(Command):