Skip to content

Commit

Permalink
feat: improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
aripalo committed Apr 7, 2022
1 parent 0c5bd04 commit 6e478b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/commands/assume/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package assume

import (
"io"
"log"
"time"

"github.com/aripalo/vegas-credentials/internal/cache"
Expand Down Expand Up @@ -80,11 +81,11 @@ func (app *App) Run() {

unlockErr := unlock()
if unlockErr != nil {
panic(unlockErr) // TODO handle better
log.Fatalln("could not release the directory lock")
}

if err != nil {
panic(err) // TODO handle better
log.Fatalln(err)
}

}
Expand Down

0 comments on commit 6e478b0

Please sign in to comment.