Skip to content
Snippets Groups Projects
Commit b8e2983f authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Merge branch 'call-abort-in-die' into 'master'

[Common] Call abort() instead of exit() in die()

See merge request !198
parents 64ba4c05 9396c5a6
No related branches found
No related tags found
1 merge request!198[Common] Call abort() instead of exit() in die()
Pipeline #62339 passed
// SPDX-License-Identifier: LGPL-3.0-or-later
// Copyright © 2020 Florian Schmaus
// Copyright © 2020-2021 Florian Schmaus
#include "Common.hpp"
#include <cstdio>
......@@ -12,5 +12,6 @@ void die(const char* message, bool usePerror) {
} else {
std::cerr << message << std::endl;
}
exit(EXIT_FAILURE);
abort();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment