Skip to content

Commit

Permalink
handled error returned from ExportDefault() function
Browse files Browse the repository at this point in the history
  • Loading branch information
Huray-hub committed Nov 5, 2023
1 parent 359ef0a commit 4446734
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assignment/cmd/assignments/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ func main() {
log.Fatalf("failed to clear wrong credentials from config: %s", err)
}
cfg.Credentials.ClearCredentials()
config.ExportDefault(*cfg, false)
err = config.ExportDefault(*cfg, false)
if err != nil {
return
}
}
log.Fatal(err)
}
Expand Down

0 comments on commit 4446734

Please sign in to comment.