forked from lix-project/lix
re-enable --show-trace check
This commit is contained in:
parent
023912def3
commit
6359d71d6b
|
@ -328,8 +328,8 @@ int handleExceptions(const string & programName, std::function<void()> fun)
|
||||||
// printError(e.prefix());
|
// printError(e.prefix());
|
||||||
logError(e.info());
|
logError(e.info());
|
||||||
// TODO fix to detect non-empty trace here.
|
// TODO fix to detect non-empty trace here.
|
||||||
// if (e.prefix() != "" && !settings.showTrace)
|
if (e.hasTrace() && !settings.showTrace)
|
||||||
// printError("(use '--show-trace' to show detailed location information)");
|
printError("(use '--show-trace' to show detailed location information)");
|
||||||
return e.status;
|
return e.status;
|
||||||
} catch (std::bad_alloc & e) {
|
} catch (std::bad_alloc & e) {
|
||||||
printError(error + "out of memory");
|
printError(error + "out of memory");
|
||||||
|
|
Loading…
Reference in a new issue