Skip to content

Commit

Permalink
Enhance exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller committed Oct 12, 2023
1 parent efd0aa9 commit 936c7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/realizations/catchment/AbstractCLibBmiAdapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ namespace models {
*/
inline void *dynamic_load_symbol(const std::string &symbol_name, bool is_null_valid) {
if (dyn_lib_handle == nullptr) {
throw std::runtime_error("Cannot load symbol " + symbol_name + " without handle to shared library");
throw std::runtime_error("Cannot load symbol '" + symbol_name + "' without handle to shared library (bmi_lib_file = '" + bmi_lib_file + "')");
}
// Call first to ensure any previous error is cleared before trying to load the symbol
dlerror();
Expand Down

0 comments on commit 936c7c0

Please sign in to comment.