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/dump_playlist.cxx | |
parent | 6717325c3f28b320fefd308bc7fb326027295aff (diff) |
config/ConfigFile: use std::exception on syntax error
Diffstat (limited to 'test/dump_playlist.cxx')
-rw-r--r-- | test/dump_playlist.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx index 4a21e2df5..65e980b21 100644 --- a/test/dump_playlist.cxx +++ b/test/dump_playlist.cxx @@ -48,7 +48,7 @@ tag_save(FILE *file, const Tag &tag) } int main(int argc, char **argv) -{ +try { const char *uri; InputStream *is = NULL; @@ -144,5 +144,8 @@ int main(int argc, char **argv) input_stream_global_finish(); config_global_finish(); - return 0; -} + return EXIT_SUCCESS; + } catch (const std::exception &e) { + LogError(e); + return EXIT_FAILURE; + } |