Fix the panic and error handling in main
This commit is contained in:
parent
131b833bbf
commit
e95331bcb8
1 changed files with 1 additions and 5 deletions
|
@ -6,7 +6,6 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/nullbio/sqlboiler"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
@ -44,8 +43,8 @@ func main() {
|
|||
|
||||
viper.BindPFlags(rootCmd.PersistentFlags())
|
||||
|
||||
// Execute SQLBoiler
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
fmt.Println("Failed to execute sqlboiler command:", err)
|
||||
os.Exit(-1)
|
||||
}
|
||||
}
|
||||
|
@ -78,9 +77,6 @@ func preRun(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
}
|
||||
|
||||
spew.Dump(config)
|
||||
panic("ROFL")
|
||||
|
||||
var err error
|
||||
state, err = sqlboiler.New(config)
|
||||
return err
|
||||
|
|
Loading…
Add table
Reference in a new issue