Skip to content

Exit 1 if a smudge fails - #732

Merged
technoweenie merged 3 commits into
masterfrom
panic-smudge
Oct 19, 2015
Merged

technoweenie merged 3 commits into
masterfrom
panic-smudge

Conversation

@rubyist

@rubyist rubyist commented Oct 12, 2015

Copy link
Copy Markdown
Contributor

This will cause the git checkout to abort instead of continue on as if things are OK.

/cc #731

@technoweenie

Copy link
Copy Markdown
Contributor

How about just Error()? Does it need to dump the stacktrace and all that?

@rubyist

rubyist commented Oct 12, 2015

Copy link
Copy Markdown
Contributor Author

It won't display the stacktrace in either case for checkout, but we could use Exit() instead. Error() still exit 0's.

@technoweenie

Copy link
Copy Markdown
Contributor

Ah right, Exit() then. Most of these errors should be transient network issues or whatever. It should still write detailed enough errors to STDERR.

@rubyist

rubyist commented Oct 12, 2015

Copy link
Copy Markdown
Contributor Author

On third thought, maybe we should do LoggedError() like it was, and just add an os.Exit(2). Skipping LoggedError() won't leave any logs behind.

@bozaro

bozaro commented Oct 16, 2015

Copy link
Copy Markdown
Contributor

👍

technoweenie added a commit that referenced this pull request Oct 19, 2015
@technoweenie
technoweenie merged commit ecd754a into master Oct 19, 2015
@technoweenie
technoweenie deleted the panic-smudge branch October 19, 2015 19:55
@technoweenie technoweenie mentioned this pull request Oct 19, 2015
14 of 20 tasks
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