Skip to content

Commit 6e0f990

Browse files
committed
cmd/vulnreport: print reason for strconv.Atoi error
Change-Id: I3ea484cdda05e7519c17fc0108082b41baccab4d Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/422370 Reviewed-by: Damien Neil <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Julie Qiu <[email protected]> Run-TryBot: Julie Qiu <[email protected]> Run-TryBot: Julie Qiu <[email protected]>
1 parent ba94ff5 commit 6e0f990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/vulnreport/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func main() {
7575
}
7676
githubID, err := strconv.Atoi(names[0])
7777
if err != nil {
78-
log.Fatal(err)
78+
log.Fatalf("invalid GitHub issue ID: %q: %v", names[0], err)
7979
}
8080
repoPath := cvelistrepo.URL
8181
if *localRepoPath != "" {

0 commit comments

Comments
 (0)