summaryrefslogtreecommitdiffhomepage
path: root/api/plugin-api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/plugin-api.cpp')
-rw-r--r--api/plugin-api.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/api/plugin-api.cpp b/api/plugin-api.cpp
index eed377b0..6820ff2c 100644
--- a/api/plugin-api.cpp
+++ b/api/plugin-api.cpp
@@ -1,4 +1,5 @@
#include "plugin-api.hpp"
+#include "compat/macros.hpp"
using namespace plugin_api::detail;
@@ -66,4 +67,7 @@ module_status::module_status(const QString& error) : error(error) {}
module_status module_status_mixin::status_ok() { return module_status(); }
-module_status module_status_mixin::error(const QString& error) { return module_status(error); }
+module_status module_status_mixin::error(const QString& error)
+{
+ return module_status(error.isEmpty() ? QString(_("Unknown error")) : error);
+}