From 65a179e314123bf780fa34a72c3718f4d1af2aef Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 9 Dec 2023 10:36:38 -0600 Subject: [PATCH] [nostalgia/player] Make error output actually check for error --- src/nostalgia/player/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nostalgia/player/main.cpp b/src/nostalgia/player/main.cpp index 60a4a9a6..bff6273e 100644 --- a/src/nostalgia/player/main.cpp +++ b/src/nostalgia/player/main.cpp @@ -36,6 +36,8 @@ int main(int argc, const char **argv) { ox::Error err; err = run(argc, argv); oxAssert(err, "Something went wrong..."); - oxErrf("Failure: {}\n", toStr(err)); + if (err) { + oxErrf("Failure: {}\n", toStr(err)); + } return static_cast(err); }