Fix errorf
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2021-05-11 17:30:18 +02:00
parent cb9acf31ad
commit 486961ba24
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -65,12 +65,12 @@ CREATE TABLE IF NOT EXISTS "items" (
rows, err := db.Query(`SELECT "id" FROM "channels" WHERE "name" = $1`, p.channel)
if err != nil {
return fmt.Errorf("fetch channel failed", err)
return fmt.Errorf("fetch channel failed: %w", err)
}
for rows.Next() {
err = rows.Scan(&p.channelID)
if err != nil {
return fmt.Errorf("fetch channel failed while scanning", err)
return fmt.Errorf("fetch channel failed while scanning: %w", err)
}
break
}