Skip to content

Commit

Permalink
add error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyYe committed Sep 6, 2017
1 parent 4b3d06b commit 3cbabb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func query(word string) {
doc, err := goquery.NewDocument(fmt.Sprintf("http://dict.youdao.com/w/%s", word))
if err != nil {
log.Fatal(err)
os.Exit(1)
}

// Find the result
Expand Down

0 comments on commit 3cbabb9

Please sign in to comment.