diff options
author | Max Kellermann <max@duempel.org> | 2015-12-16 11:12:30 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-12-16 11:13:16 +0100 |
commit | d256a0e98f587c0af714c74038ff75903c0903fe (patch) | |
tree | aae75428f19202650f93d5fbd7062b29e612b110 /test/run_output.cxx | |
parent | 6717325c3f28b320fefd308bc7fb326027295aff (diff) |
config/ConfigFile: use std::exception on syntax error
Diffstat (limited to 'test/run_output.cxx')
-rw-r--r-- | test/run_output.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/run_output.cxx b/test/run_output.cxx index 5100e8b44..f8f959a07 100644 --- a/test/run_output.cxx +++ b/test/run_output.cxx @@ -146,7 +146,7 @@ run_output(AudioOutput *ao, AudioFormat audio_format) } int main(int argc, char **argv) -{ +try { Error error; if (argc < 3 || argc > 4) { @@ -196,4 +196,7 @@ int main(int argc, char **argv) config_global_finish(); return success ? EXIT_SUCCESS : EXIT_FAILURE; -} + } catch (const std::exception &e) { + LogError(e); + return EXIT_FAILURE; + } |