chore: remove arbitrary error catching for debug mode
This commit is contained in:
parent
3229d41d85
commit
17e5021fd8
@ -169,6 +169,7 @@ int main(int argc, const char *argv[]) {
|
|||||||
catch (const messages::message_t &msg) {
|
catch (const messages::message_t &msg) {
|
||||||
msg_stack.push(msg);
|
msg_stack.push(msg);
|
||||||
}
|
}
|
||||||
|
#ifndef PROFILE_debug
|
||||||
catch (const std::string &msg) {
|
catch (const std::string &msg) {
|
||||||
msg_stack.push(message_t::error(msg));
|
msg_stack.push(message_t::error(msg));
|
||||||
}
|
}
|
||||||
@ -176,6 +177,7 @@ int main(int argc, const char *argv[]) {
|
|||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
msg_stack.push(message_t::error("A fatal error occurred."));
|
msg_stack.push(message_t::error("A fatal error occurred."));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
msg_stack.print(std::cout, messages::message_t::DEBUG, true);
|
msg_stack.print(std::cout, messages::message_t::DEBUG, true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user