stevieb9 / berrybrew

Perlbrew for Windows!
Other
63 stars 9 forks source link

Add error code enum and ensure all exit paths return an appropriate error #239

Closed stevieb9 closed 3 years ago

stevieb9 commented 4 years ago

...instead of everything returning -1.

stevieb9 commented 4 years ago

Also add a hidden command to translate the error code into a proper error name with description.

See this SO post for details on how to create an enum with descriptions.

Some exit codes coming back from external processes may collide with, or be absent from the enum.

stevieb9 commented 3 years ago

Fixed in v1.31