# HG changeset patch # User Chris Cannam # Date 1541169644 0 # Node ID 830972646ccd80e3d2694d5bee381c4d11ef0da5 # Parent 73b3dd65e0b3f92ab73ad1caa7c8dfd589348815 Handle security errors, format slightly differently for message box diff -r 73b3dd65e0b3 -r 830972646ccd plugin/PluginScan.cpp --- a/plugin/PluginScan.cpp Thu Oct 18 13:14:56 2018 +0100 +++ b/plugin/PluginScan.cpp Fri Nov 02 14:40:44 2018 +0000 @@ -190,7 +190,7 @@ os << "
" + f.library + "
";
SVDEBUG << "PluginScan::formatFailureReport: tag is \"" << tag
<< "\", failure code is " << int(f.code) << ", message is \""
@@ -225,6 +225,11 @@
("Library cannot be loaded: %1").arg(userMessage);
break;
+ case PluginCheckCode::FAIL_FORBIDDEN:
+ userMessage = QObject::tr
+ ("Permission to load library was refused");
+ break;
+
case PluginCheckCode::FAIL_DESCRIPTOR_MISSING:
userMessage = QObject::tr
("Not a valid plugin library (no descriptor found)");
@@ -298,8 +303,7 @@
return report;
}
- return QObject::tr("Failed to load plugins"
- "Failed to load one or more plugin libraries:
") + return QObject::tr("Failed to load one or more plugin libraries:
") + report + QObject::tr("These plugins may be incompatible with the system, " "and will be ignored during this run of %1.
")