Skip to content

Commit

Permalink
docs: add comment to clarify change
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Sep 5, 2024
1 parent 2567026 commit d125cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ func main() {

if len(ctx.Args) > 0 {
switch ctx.Args[0] {

case "version":
if Version == "" {
if info, ok := debug.ReadBuildInfo(); ok && info.Main.Sum != "" {
Expand All @@ -86,6 +85,7 @@ func main() {
input, err = executeCommand(config)
if err != nil {
if input != "" {
// show the full error message output
printErrorFatal("Something went wrong", errors.New(input))
}
printErrorFatal("Something went wrong", err)
Expand Down

0 comments on commit d125cdc

Please sign in to comment.