Fix the panic and error handling in main

This commit is contained in:
Aaron L 2016-06-11 23:19:14 -07:00
parent 131b833bbf
commit e95331bcb8

View file

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