Skip to content

Commit

Permalink
chore: log error message in hack
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Sep 18, 2023
1 parent 625d63e commit b041eb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ require (
github.com/onsi/ginkgo/v2 v2.9.4
github.com/onsi/gomega v1.27.6
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.9.3
github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2
github.com/zclconf/go-cty v1.13.1
Expand Down Expand Up @@ -95,6 +94,7 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/robertkrimen/otto v0.2.1 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/sergi/go-diff v1.3.1 // indirect
Expand Down
4 changes: 1 addition & 3 deletions hack/migrate/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package main

import (
"os"

"github.com/flanksource/commons/logger"
"github.com/flanksource/duty"
"github.com/spf13/cobra"
Expand All @@ -22,6 +20,6 @@ var connection string
func main() {
migrate.Flags().StringVar(&connection, "db-url", "", "Database URI: scheme://user:pass@host:port/database")
if err := migrate.Execute(); err != nil {
os.Exit(1)
logger.Fatalf("failed to run migration: %v", err)
}
}

0 comments on commit b041eb8

Please sign in to comment.