about summary refs log tree commit diff
path: root/src/shared.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared.cc')
-rw-r--r--src/shared.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared.cc b/src/shared.cc
index 6d157766e4af..bd165ce9781b 100644
--- a/src/shared.cc
+++ b/src/shared.cc
@@ -54,6 +54,9 @@ int main(int argc, char * * argv)
             "Try `%2% --help' for more information.\n")
             % e.what() % programId;
         return 1;
+    } catch (Error & e) {
+        cerr << format("error: %1%\n") % e.msg();
+        return 1;
     } catch (exception & e) {
         cerr << format("error: %1%\n") % e.what();
         return 1;