From 8707e5c9bdd1706563782d9d180a32ac59785135 Mon Sep 17 00:00:00 2001 From: Phil Miller Date: Thu, 21 Sep 2023 13:27:48 -0700 Subject: [PATCH] Enhance exception message --- include/bmi/AbstractCLibBmiAdapter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bmi/AbstractCLibBmiAdapter.hpp b/include/bmi/AbstractCLibBmiAdapter.hpp index 8a7c01cbca..e6c5ab88f3 100644 --- a/include/bmi/AbstractCLibBmiAdapter.hpp +++ b/include/bmi/AbstractCLibBmiAdapter.hpp @@ -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();