Skip to content

Commit

Permalink
Merge pull request #66 from servian/updatedb-exit
Browse files Browse the repository at this point in the history
Exit non-zero on updatedb error.
  • Loading branch information
tristanmorgan authored Jan 29, 2021
2 parents e951675 + 4cda6d3 commit 0b8c777
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/updatedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ package cmd

import (
"fmt"
"os"


"github.com/servian/TechChallengeApp/db"
"github.com/spf13/cobra"
Expand All @@ -37,6 +39,7 @@ var updatedbCmd = &cobra.Command{

if err != nil {
fmt.Println(err)
os.Exit(1)
}
},
}
Expand Down

0 comments on commit 0b8c777

Please sign in to comment.