aboutsummaryrefslogtreecommitdiff
path: root/src/libmain/shared.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-05-03 08:01:25 -0600
committerBen Burdette <bburdette@gmail.com>2020-05-03 08:01:25 -0600
commitab6f0b9641ad6e9cef72f73d23e31138a97a225b (patch)
treec9c8a4e44a0657f6fb186e2401799846847673f5 /src/libmain/shared.cc
parent4b99c09f5ccd385d2bf0c82a8c9a4ae1658abbe8 (diff)
convert some printError calls to logError
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r--src/libmain/shared.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 8551eb048..5773d90cc 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -300,21 +300,21 @@ int handleExceptions(const string & programName, std::function<void()> fun)
} catch (UsageError & e) {
// TODO: switch to logError
// logError(e.info());
- printError(
+ _printError(
format("%1%\nTry '%2% --help' for more information.")
% e.what() % programName);
return 1;
} catch (BaseError & e) {
// logError(e.info());
- printError("%1%%2%", (settings.showTrace ? e.prefix() : ""), e.msg());
+ _printError("%1%%2%", (settings.showTrace ? e.prefix() : ""), e.msg());
if (e.prefix() != "" && !settings.showTrace)
- printError("(use '--show-trace' to show detailed location information)");
+ _printError("(use '--show-trace' to show detailed location information)");
return e.status;
} catch (std::bad_alloc & e) {
- printError(error + "out of memory");
+ _printError(error + "out of memory");
return 1;
} catch (std::exception & e) {
- printError(error + e.what());
+ _printError(error + e.what());
return 1;
}