fs/io/Reader: use C++ exceptions instead of class Error

This commit is contained in:
Max Kellermann
2015-12-16 11:05:33 +01:00
parent fe60c52c70
commit e6e7d6dbd6
33 changed files with 192 additions and 334 deletions

View File

@@ -69,7 +69,6 @@ load_filter(const char *name)
int main(int argc, char **argv)
try {
struct audio_format_string af_string;
Error error2;
char buffer[4096];
if (argc < 3 || argc > 4) {
@@ -84,8 +83,7 @@ try {
/* read configuration file (mpd.conf) */
config_global_init();
if (!ReadConfigFile(config_path, error2))
FatalError(error2);
ReadConfigFile(config_path);
/* parse the audio format */