Filter/Plugin: migrate from class Error to C++ exceptions

This commit is contained in:
Max Kellermann
2016-09-04 20:07:05 +02:00
parent 13c32111a0
commit 1c07f197de
13 changed files with 72 additions and 135 deletions

View File

@@ -58,14 +58,7 @@ load_filter(const char *name)
return nullptr;
}
Error error;
auto *filter = filter_configured_new(*param, error);
if (filter == NULL) {
LogError(error, "Failed to load filter");
return NULL;
}
return filter;
return filter_configured_new(*param);
}
int main(int argc, char **argv)