aboutsummaryrefslogtreecommitdiff
path: root/src/libmain
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/shared.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 9c2ad039a..1b021d0b0 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -339,7 +339,7 @@ int handleExceptions(const std::string & programName, std::function<void()> fun)
return 1;
} catch (BaseError & e) {
logError(e.info());
- return e.status;
+ return e.info().status;
} catch (std::bad_alloc & e) {
printError(error + "out of memory");
return 1;