comparison src/plugincandidates.cpp @ 43:46e45b4a4a03 errorcode

Wrong version should be an error
author Chris Cannam
date Fri, 31 Aug 2018 09:42:43 +0100
parents 40c6936c2fc9
children 0f7df035192d
comparison
equal deleted inserted replaced
42:49946b02414e 43:46e45b4a4a03
117 string helperVersion = getHelperCompatibilityVersion(); 117 string helperVersion = getHelperCompatibilityVersion();
118 if (helperVersion != CHECKER_COMPATIBILITY_VERSION) { 118 if (helperVersion != CHECKER_COMPATIBILITY_VERSION) {
119 log("wrong plugin checker helper version found: expected v" + 119 log("wrong plugin checker helper version found: expected v" +
120 string(CHECKER_COMPATIBILITY_VERSION) + ", found v" + 120 string(CHECKER_COMPATIBILITY_VERSION) + ", found v" +
121 helperVersion); 121 helperVersion);
122 return; 122 throw runtime_error("wrong version of plugin load helper found");
123 } 123 }
124 124
125 vector<string> libraries = getLibrariesInPath(pluginPath); 125 vector<string> libraries = getLibrariesInPath(pluginPath);
126 vector<string> remaining = libraries; 126 vector<string> remaining = libraries;
127 127