[nostalgia/player] Make error output actually check for error
This commit is contained in:
parent
eed240eacc
commit
65a179e314
@ -36,6 +36,8 @@ int main(int argc, const char **argv) {
|
|||||||
ox::Error err;
|
ox::Error err;
|
||||||
err = run(argc, argv);
|
err = run(argc, argv);
|
||||||
oxAssert(err, "Something went wrong...");
|
oxAssert(err, "Something went wrong...");
|
||||||
|
if (err) {
|
||||||
oxErrf("Failure: {}\n", toStr(err));
|
oxErrf("Failure: {}\n", toStr(err));
|
||||||
|
}
|
||||||
return static_cast<int>(err);
|
return static_cast<int>(err);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user