mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
chore(cli): more human readable error message
This commit is contained in:
parent
ebac0a12ff
commit
cb5ec3e7dc
@ -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)
|
||||
|
@ -56,7 +56,6 @@ func GetMigrations() []Migration {
|
||||
}
|
||||
|
||||
func Migrate(d Store) error {
|
||||
fmt.Println("Checking db migrations")
|
||||
didRun := false
|
||||
|
||||
for _, version := range GetMigrations() {
|
||||
|
Loading…
Reference in New Issue
Block a user