Browse Source

Clean up plugin::modelFromJson() "Could not find module" message.

tags/v2.0.4
Andrew Belt 3 years ago
parent
commit
cbe4fe1d3f
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      src/patch.cpp
  2. +1
    -1
      src/plugin.cpp

+ 1
- 0
src/patch.cpp View File

@@ -455,6 +455,7 @@ json_t* Manager::toJson() {

void Manager::fromJson(json_t* rootJ) {
clear();
warningLog = "";

// version
std::string version;


+ 1
- 1
src/plugin.cpp View File

@@ -398,7 +398,7 @@ Model* modelFromJson(json_t* moduleJ) {
// Get Model
Model* model = getModelFallback(pluginSlug, modelSlug);
if (!model)
throw Exception("Could not find module \"%s\" \"%s\"", pluginSlug.c_str(), modelSlug.c_str());
throw Exception("Could not find module %s/%s", pluginSlug.c_str(), modelSlug.c_str());
return model;
}



Loading…
Cancel
Save