Skip to content

Commit

Permalink
Merge pull request #14 from hatena/handle-main-error
Browse files Browse the repository at this point in the history
Handle main error
  • Loading branch information
i2tsuki authored Mar 20, 2018
2 parents b7db97a + 13c45d7 commit 3f673e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"fmt"
"os"

"github.com/hatena/swiro/build"
Expand All @@ -21,5 +22,9 @@ func main() {
app.Commands = Commands
app.CommandNotFound = CommandNotFound

app.Run(os.Args)
err := app.Run(os.Args)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}

0 comments on commit 3f673e8

Please sign in to comment.