Display errors on browser failure #115
No reviewers
Labels
No Label
blocked
bug
build
documentation
duplicate
enhancement
finger
gemini
gopher
help wanted
http
in progress
invalid
local
needs-info
non-code
non-functional
non-urgent
question
release
rendering
suggestion
telnet
terminal
urgent
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sloum/bombadillo#115
Loading…
Reference in New Issue
No description provided.
Delete Branch "panic-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue #114 notices that we use panic in at least one place. Due to the way that Bombadillo uses the alternate screen buffer panic and other early exit error messages end up getting wiped clean when we clean up the terminal on exit. This PR resolves that in the following ways:
cui.Exit
:
cui.Exit(1, "There is an error and this is a very descriptive description")`Verification:
One easy test of this is to change the
configlocation
value indefaults.go
to something invalid:"/"
(assuming non-root user running bombadillo), or""
. Doing so, I got pretty clear error messages on exit that were visible and displayed properly. Regular exits pass an empty string tocui.Exit
and do not print anything (but do exit with0
).A very nice improvement that really improves usability.
I've made some slight wording changes on the error messages, which also seems to have fixed the stalled merge conflict check.
Awesome. That text works better. :) I think this will be very helpful to new users trying to get things to work. Hopefully they dont need to debug issues using these error messages, but without it we end up with things like jboverf's issue where it ran and exited with a 0 but nothing else happened.
Merging in and will create a tag for the patch.
I found out that all tags show up on the releases page, but only tags that get made releases get the text with them and only those ones get the additional moniker "stable" next to them.