Removed redundant error output

This commit is contained in:
Patrick O'brien 2016-02-24 16:34:19 +10:00
parent 2ea3239ad1
commit bdcb196b9b
2 changed files with 1 additions and 4 deletions

View file

@ -17,8 +17,7 @@ type tplData struct {
}
func errorQuit(err error) {
fmt.Println(fmt.Sprintf("Error: %s\n---\n", err))
structCmd.Help()
fmt.Println(fmt.Sprintf("Error: %s\n---\n\nRun 'sqlboiler --help' for usage.", err))
os.Exit(-1)
}

View file

@ -1,7 +1,6 @@
package main
import (
"fmt"
"os"
"github.com/pobri19/sqlboiler/cmds"
@ -9,7 +8,6 @@ import (
func main() {
if err := cmds.SQLBoiler.Execute(); err != nil {
fmt.Println(err)
os.Exit(-1)
}
}