diff --git a/_content/doc/database/querying.md b/_content/doc/database/querying.md index c36bea6bb6..0d6035a3ca 100644 --- a/_content/doc/database/querying.md +++ b/_content/doc/database/querying.md @@ -50,7 +50,7 @@ func canPurchase(id int, quantity int) (bool, error) { if err == sql.ErrNoRows { return false, fmt.Errorf("canPurchase %d: unknown album", id) } - return false, fmt.Errorf("canPurchase %d: %v", id) + return false, fmt.Errorf("canPurchase %d: %v", id, err) } return enough, nil }