Mercurial > hg > vamp-plugin-load-checker
comparison src/knownplugincandidates.cpp @ 40:40c6936c2fc9 errorcode
Return numerical error codes, so the caller can apply i18n on display; distinguish explicitly the common win32 architecture problems
author | Chris Cannam |
---|---|
date | Wed, 29 Aug 2018 17:40:22 +0100 |
parents | 4154894d638c |
children |
comparison
equal
deleted
inserted
replaced
38:a43d7a2867d2 | 40:40c6936c2fc9 |
---|---|
64 m_known.getPathFor(type), | 64 m_known.getPathFor(type), |
65 m_known.getDescriptorFor(type)); | 65 m_known.getDescriptorFor(type)); |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 string | 69 vector<PluginCandidates::FailureRec> |
70 KnownPluginCandidates::getFailureReport() const | 70 KnownPluginCandidates::getFailures() const |
71 { | 71 { |
72 vector<PluginCandidates::FailureRec> failures; | 72 vector<PluginCandidates::FailureRec> failures; |
73 | 73 |
74 for (auto t: getKnownPluginTypes()) { | 74 for (auto t: getKnownPluginTypes()) { |
75 auto ff = m_candidates.getFailedLibrariesFor(m_known.getTagFor(t)); | 75 auto ff = m_candidates.getFailedLibrariesFor(m_known.getTagFor(t)); |
76 failures.insert(failures.end(), ff.begin(), ff.end()); | 76 failures.insert(failures.end(), ff.begin(), ff.end()); |
77 } | 77 } |
78 | 78 |
79 return failures; | |
80 } | |
81 | |
82 string | |
83 KnownPluginCandidates::getFailureReport() const | |
84 { | |
85 auto failures = getFailures(); | |
79 if (failures.empty()) return ""; | 86 if (failures.empty()) return ""; |
80 | 87 |
81 int n = int(failures.size()); | 88 int n = int(failures.size()); |
82 int i = 0; | 89 int i = 0; |
83 | 90 |