From cbe4fe1d3f7459d81368df68591c1317e6a40d23 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 12 Dec 2021 08:45:48 -0500 Subject: [PATCH] Clean up plugin::modelFromJson() "Could not find module" message. --- src/patch.cpp | 1 + src/plugin.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/patch.cpp b/src/patch.cpp index e848d8f2..989825f1 100644 --- a/src/patch.cpp +++ b/src/patch.cpp @@ -455,6 +455,7 @@ json_t* Manager::toJson() { void Manager::fromJson(json_t* rootJ) { clear(); + warningLog = ""; // version std::string version; diff --git a/src/plugin.cpp b/src/plugin.cpp index cc59caa7..b494e6b2 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -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; }