Skip to content

Commit 7567411

Browse files
denpeshkovgopherbot
authored andcommitted
_content/doc/database: add missing err in fmt.Errorf call
There's a %v in the format string, but the err variable wasn't included. Fixes golang/go#65016 Change-Id: If073c0e79c9b376a7e43fded70db7669e72237ce GitHub-Last-Rev: 14f8d91 GitHub-Pull-Request: #270 Reviewed-on: https://go-review.googlesource.com/c/website/+/555016 Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
1 parent 084ad90 commit 7567411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_content/doc/database/querying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func canPurchase(id int, quantity int) (bool, error) {
5050
if err == sql.ErrNoRows {
5151
return false, fmt.Errorf("canPurchase %d: unknown album", id)
5252
}
53-
return false, fmt.Errorf("canPurchase %d: %v", id)
53+
return false, fmt.Errorf("canPurchase %d: %v", id, err)
5454
}
5555
return enough, nil
5656
}

0 commit comments

Comments
 (0)