Open-CMSIS-Pack / devtools

Open-CMSIS-Pack development tools - C++
Apache License 2.0
74 stars 55 forks source link

Improve error message in case of missing compiler registration #1590

Closed ReinhardKeil closed 2 months ago

ReinhardKeil commented 3 months ago

The Problem To Be Solved When there is no environment variable for Compiler Registration the error message does not hint to a solution.

To Duplicate with GCC

set GCC_TOOLCHAIN_13_2_1=                // remove compiler registration
cbuild SimpleTZ.csolution.yml --toolchain GCC --update-rte                     
error csolution: toolchain environment variable for 'GCC' was not found

Suggest A Solution

Change: error csolution: toolchain environment variable for 'GCC' was not found

To: error csolution: compiler registration environment variable missing, format: GCC_TOOLCHAIN_<major>_<minor>_<patch>