Skip to content

Commit

Permalink
fix: return after zenity.ErrCanceled
Browse files Browse the repository at this point in the history
Signed-off-by: Thanh Thai <[email protected]>
  • Loading branch information
FuLygon committed Jun 4, 2024
1 parent 070b866 commit 3e3f366
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func main() {
func handleZenityCancelErr(err error) {
if errors.Is(err, zenity.ErrCanceled) {
logger.Warn("user cancelled", err)
return
}
logger.Error("an error occurred", err)
}

0 comments on commit 3e3f366

Please sign in to comment.