Skip to content

Commit 52f9881

Browse files
Catch std::exception instead of std::runtime_error
1 parent 3ecad0d commit 52f9881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rfl/toml/read.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Result<internal::wrap_in_rfl_array_t<T>> read(
3434
try {
3535
auto table = ::toml::parse(_toml_str);
3636
return read<T, Ps...>(&table);
37-
} catch (std::runtime_error& e) {
37+
} catch (const std::exception& e) {
3838
return error(e.what());
3939
}
4040
#else

0 commit comments

Comments
 (0)