chore(cli): more human readable error message

This commit is contained in:
Denis Gukov 2022-02-01 01:15:40 +05:00
parent ebac0a12ff
commit cb5ec3e7dc
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -56,7 +56,6 @@ func GetMigrations() []Migration {
}
func Migrate(d Store) error {
fmt.Println("Checking db migrations")
didRun := false
for _, version := range GetMigrations() {