Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Return a non-zero exit code upon error#848

Closed
abstractlyZach wants to merge 2 commits intogoogle:mastergoogle/google-java-format:masterfrom
abstractlyZach:return_nonzeroabstractlyZach/google-java-format:return_nonzeroCopy head branch name to clipboard
Closed

Return a non-zero exit code upon error#848
abstractlyZach wants to merge 2 commits intogoogle:mastergoogle/google-java-format:masterfrom
abstractlyZach:return_nonzeroabstractlyZach/google-java-format:return_nonzeroCopy head branch name to clipboard

Conversation

@abstractlyZach
Copy link
Contributor

This brings us in line with the Unix standard of returning non-zero for a failed command:
https://www.gnu.org/software/bash/manual/html_node/Exit-Status.html

Also, this will allow any callers (like google-java-format-diff.py) to respond appropriately.
A change needed to be reverted because google-java-format-diff.py
was failing silently, so the author wasn't aware that their change caused a pre-upload hook to stop working.

This brings us in line with the Unix standard of returning non-zero for
a failed command:
https://www.gnu.org/software/bash/manual/html_node/Exit-Status.html

Also, this will allow any callers (like google-format-java-diff.py) to respond
appropriately.
copybara-service bot pushed a commit that referenced this pull request Jan 16, 2023
This brings us in line with the Unix standard of returning non-zero for a failed command:
https://www.gnu.org/software/bash/manual/html_node/Exit-Status.html

Also, this will allow any callers (like google-java-format-diff.py) to respond appropriately.
[A change](http://r.android.com/2257232) needed to be reverted because `google-java-format-diff.py`
was failing silently, so the author wasn't aware that their change caused a pre-upload hook to stop working.

Fixes #848

FUTURE_COPYBARA_INTEGRATE_REVIEW=#848 from abstractlyZach:return_nonzero 06b2d36
PiperOrigin-RevId: 502211842
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.