config/ConfigFile: use std::exception on syntax error

This commit is contained in:
Max Kellermann
2015-12-16 11:12:30 +01:00
parent 6717325c3f
commit d256a0e98f
10 changed files with 127 additions and 87 deletions

View File

@@ -67,7 +67,7 @@ load_filter(const char *name)
}
int main(int argc, char **argv)
{
try {
struct audio_format_string af_string;
Error error2;
char buffer[4096];
@@ -151,5 +151,8 @@ int main(int argc, char **argv)
config_global_finish();
return 0;
}
return EXIT_SUCCESS;
} catch (const std::exception &e) {
LogError(e);
return EXIT_FAILURE;
}