+
Skip to content

Conversation

aspiers
Copy link
Contributor

@aspiers aspiers commented Feb 9, 2020

Always return non-zero exit code on error for consistency. This ensures that if aergoluac is called from within shell scripts / Makefiles etc., errors can be properly detected and handled.

Returning the error from the cobra.Command closure automatically causes it to be output to STDERR, so we don't need to print it ourselves.

Always return non-zero exit code on error for consistency.  This
ensures that if aergoluac is called from within shell scripts /
Makefiles etc., errors can be properly detected and handled.

Returning the error from the cobra.Command closure automatically
causes it to be output to STDERR, so we don't need to print it
ourselves.
@graup graup requested a review from mlogue76 February 10, 2020 01:42
@mlogue76 mlogue76 merged commit b691b49 into aergoio:develop Feb 11, 2020
@aspiers aspiers deleted the aergoluac-exit-code branch April 13, 2020 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载