iits-consulting / otc-auth

Open Source CLI for the Open Telekom Cloud written in go.
GNU General Public License v3.0
44 stars 4 forks source link

Fix oidc error exit number #71

Closed Ninja243 closed 1 year ago

Ninja243 commented 1 year ago

When logging in with oidc, if an error happened, otc-auth would exit with a program status number of 0, which could break scripts like:

otc-auth login idp-oidc --overwrite-token && \
otc-auth temp-access-token create --duration-seconds 86390

Also standardizes output a little