Issue 18: Return non-zero exit codes when util commands fail

Reported by benton edmondson, Jul 27, 2021

Steps to reproduce the problem:
1. ./activate -u test -O test (random password when prompted)
2. Exception is printed out, user is not registered
3. echo $?

Expected result: echo $? should return non-zero because 0 is success 
and the registration failed

Actual result: echo $? returns 0

Comment 1 by benton edmondson, Jul 28, 2021

Also, can you consider making the errors more human-readable?

For instance, when my network is disabled, I get

Exception code : 0x500a
Message        : Error 3

Comment 2 by Grégory Soutadé, Jul 29, 2021

Errors corrected in last commit.
I did not re generate utils with these fixes because they're minor.

Thanks for your report.

Status: Fixed

Created: 1 year 10 months ago by benton edmondson

Updated: 1 year 10 months ago

Status: Fixed

Followed by: 1 person