Refactor error handling #308
No reviewers
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#308
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:improve-error-log"
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?
log.Fatal()
statements.(A few
log.Fatal()
s remain, as I only refactored things that don't require a change of function signature.)cli.ErrorCoder
interface), but didn't continue as I wasn't sure what granularity would be needed to be useful, if useful at all. Let me know if you think this is worthwhile.closes #295
@ -46,3 +46,3 @@
if err != nil {
log.Fatalf("Failed to run app with %s: %v", os.Args, err)
fmt.Printf("Error: %v\n", err)
}
One nit: can you print to stderr ?