Skip to content

Commit

Permalink
chore(cli): more human readable error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Jan 31, 2022
1 parent ebac0a1 commit cb5ec3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ func createStore() db.Store {
if err := store.Connect(); err != nil {
switch err {
case bbolt.ErrTimeout:
fmt.Println("\n BoltDB supports only one connection at a time. You should stop Semaphore yo use CLI.")
fmt.Println("\n BoltDB supports only one connection at a time. You should stop Semaphore to use CLI.")
default:
fmt.Println("\n Have you run `semaphore setup`?")
}
panic(err)
os.Exit(1)
}

err := db.Migrate(store)
Expand Down
1 change: 0 additions & 1 deletion db/Migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func GetMigrations() []Migration {
}

func Migrate(d Store) error {
fmt.Println("Checking db migrations")
didRun := false

for _, version := range GetMigrations() {
Expand Down

0 comments on commit cb5ec3e

Please sign in to comment.