Skip to content

Commit 13372ae

Browse files
Context specific error listing
1 parent 4464399 commit 13372ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/projmgr/src/ProjMgr.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,9 @@ bool ProjMgr::RunListLayers(void) {
898898
vector<string> layers;
899899
error = !m_worker.ListLayers(layers, m_clayerSearchPath, m_failedContext);
900900
if (error) {
901-
ProjMgrLogger::Get().Error("no compatible software layer found. Review required connections of the project");
901+
for (const string& context : m_failedContext) {
902+
ProjMgrLogger::Get().Error("no compatible software layer found. Review required connections of the project", context);
903+
}
902904
}
903905

904906
if (!m_updateIdx) {

tools/projmgr/test/data/TestLayers/ref/variables-notdefined.cbuild-idx.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ build-idx:
2929
clayers:
3030
- clayer: ../data/TestLayers/Layer1/layer1.clayer.yml
3131
messages:
32-
errors:
33-
- no compatible software layer found. Review required connections of the project
3432
warnings:
3533
- variables-notdefined.csolution.yml - cproject.yml files should be placed in separate sub-directories
3634
- "testlayers.cproject.yml - 'device: Dname' is deprecated at this level and accepted in *.csolution.yml only"

0 commit comments

Comments
 (0)