Skip to content

Commit

Permalink
Print message when no entry is found
Browse files Browse the repository at this point in the history
  • Loading branch information
cgxeiji committed Nov 5, 2018
1 parent 5850b66 commit 840fd85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,9 @@ func queryEntry(search string) *scholar.Entry {
}
}

if entry == nil {
fmt.Println("No entries match the query.")
}

return entry
}

0 comments on commit 840fd85

Please sign in to comment.