Skip to content

Commit 607a565

Browse files
authored
shorten message
1 parent 4d01b80 commit 607a565

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/projmgr/src/ProjMgr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,8 +1246,8 @@ bool ProjMgr::ValidateCreatedFor(const string& createdFor) {
12461246
if (VersionCmp::RangeCompare(version, currentVersion + ":" + currentVersion) <= 0) {
12471247
return true;
12481248
} else {
1249-
const string msg = "the 'created-for' node in file " + m_csolutionFile + " specifies a minimum version "
1250-
+ version + " which is higher than " + currentVersion + " of the used CMSIS-Toolbox manifest";
1249+
const string msg = "'created-for' in file " + m_csolutionFile + " specifies a minimum version "
1250+
+ version + " (current version " + currentVersion + ")";
12511251
if (m_rpcMode) {
12521252
ProjMgrLogger::Get().Warn(msg);
12531253
return true;

tools/projmgr/test/src/ProjMgrUnitTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6175,8 +6175,8 @@ TEST_F(ProjMgrUnitTests, FailCreatedFor) {
61756175
char* argv[5];
61766176
StdStreamRedirect streamRedirect;
61776177
const string& csolution = testinput_folder + "/TestSolution/created-for.csolution.yml";
6178-
const string& expectedErrMsg = "error csolution: the 'created-for' node in file .*created-for\\.csolution\\.yml\
6179-
specifies a minimum version 9\\.9\\.9 which is higher than .* of the used CMSIS-Toolbox manifest\n";
6178+
const string& expectedErrMsg = "error csolution: 'created-for' in file .*created-for\\.csolution\\.yml\
6179+
specifies a minimum version 9\\.9\\.9 \\(current version .*\\)\n";
61806180
argv[1] = (char*)"convert";
61816181
argv[2] = (char*)csolution.c_str();
61826182
argv[3] = (char*)"--output";

0 commit comments

Comments
 (0)