Skip to content

Commit 7a2283a

Browse files
committed
FDS Output: allow more descriptive error messages when std::exception is thrown
Previously, we would only print exception description if the exception was of type FDS_exception, otherwise we would fail with "Unknown error", which does not help with figuring out what the problem was at all. We ourselves throw descriptive exceptions of type std::runtime_error for example in case of Config parsing errors, that would never get printed in the original state, and instead we'd still fail with "Unknown error".
1 parent 9e8f903 commit 7a2283a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/output/fds/src/fds.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ipx_plugin_init(ipx_ctx_t *ctx, const char *params)
8282
window_check(*instance);
8383
// Everything seems OK
8484
ipx_ctx_private_set(ctx, instance.release());
85-
} catch (const FDS_exception &ex) {
85+
} catch (const std::exception &ex) {
8686
IPX_CTX_ERROR(ctx, "Initialization failed: %s", ex.what());
8787
return IPX_ERR_DENIED;
8888
} catch (...) {

0 commit comments

Comments
 (0)