raspberrypi / pico-project-generator

Tool to automatically generate a Pico C SDK Project
BSD 3-Clause "New" or "Revised" License
289 stars 74 forks source link

Fix #79, Meaningful exit/error codes #83

Closed paulober closed 11 months ago

paulober commented 1 year ago
JamesH65 commented 1 year ago

I am slightly concerned that people might be checking return codes for < 0 which this PR will break. However, I suspect the number of people checking the generator's return codes is tiny, so maybe it's not an issue. Otherwise seems a good PR. I should never have used -1 as a return code TBH.

paulober commented 1 year ago

@JamesH65 I could also update the exit codes to be negative so it does not interfere with the < 0 checks some people might have? I think Apple for example mostly uses negative exit codes...