diff --git a/include/realizations/catchment/AbstractCLibBmiAdapter.hpp b/include/realizations/catchment/AbstractCLibBmiAdapter.hpp index ceec98d8f0..b709866737 100644 --- a/include/realizations/catchment/AbstractCLibBmiAdapter.hpp +++ b/include/realizations/catchment/AbstractCLibBmiAdapter.hpp @@ -164,7 +164,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();