mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Better error message when UNIFAQ component cannot be found; closes #1202
This commit is contained in:
@@ -112,7 +112,7 @@ namespace UNIFAQLibrary{
|
||||
if (it->name == value ){ return *it; }
|
||||
}
|
||||
}
|
||||
throw CoolProp::ValueError("Could not find component");
|
||||
throw CoolProp::ValueError(format("Could not find component: %s with identifier: %s", value, identifier));
|
||||
}
|
||||
|
||||
}; /* namespace UNIFAQLibrary */
|
||||
Reference in New Issue
Block a user