better error string

This commit is contained in:
Green Sky 2024-07-16 16:04:23 +02:00
parent ade1b4ea74
commit 54cd23433d
No known key found for this signature in database

View File

@ -111,7 +111,7 @@ template<typename T>
static auto plug_resolveInstance(const SolanaAPI* solana_api, const char* id, const char* version) { static auto plug_resolveInstance(const SolanaAPI* solana_api, const char* id, const char* version) {
auto res = plug_resolveInstanceOptional<T>(solana_api, id, version); auto res = plug_resolveInstanceOptional<T>(solana_api, id, version);
if (res == nullptr) { if (res == nullptr) {
throw ResolveException{"missing " + std::string{id} + " " + version}; throw ResolveException{"missing '" + std::string{id} + "' version '" + version + "'"};
} }
return res; return res;
} }