Removed redundant error output
This commit is contained in:
parent
2ea3239ad1
commit
bdcb196b9b
2 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
2
main.go
2
main.go
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue