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#882

Merged
copybara-service[bot] merged 1 commit intomastergoogle/google-java-format:masterfrom
test_502211842google/google-java-format:test_502211842Copy head branch name to clipboard
Jan 16, 2023
Merged

Return a non-zero exit code upon error#882
copybara-service[bot] merged 1 commit intomastergoogle/google-java-format:masterfrom
test_502211842google/google-java-format:test_502211842Copy head branch name to clipboard

Conversation

@copybara-service
Copy link

Return a non-zero exit code upon error

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.

Fixes #848

FUTURE_COPYBARA_INTEGRATE_REVIEW=#848 from abstractlyZach:return_nonzero 06b2d36

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

COPYBARA_INTEGRATE_REVIEW=#848 from abstractlyZach:return_nonzero 06b2d36
PiperOrigin-RevId: 502399096
@copybara-service copybara-service bot merged commit 4a22aab into master Jan 16, 2023
@copybara-service copybara-service bot deleted the test_502211842 branch January 16, 2023 17:49
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.

1 participant

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