Skip to content

Commit

Permalink
chore: correct cast from int to string in error message formating (#1327
Browse files Browse the repository at this point in the history
)
  • Loading branch information
acastle authored Dec 22, 2020
1 parent 06991d7 commit d827f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/events/db/boltdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (b *BoltDB) List() ([]models.ProjectLock, error) {
for k, v := range locksBytes {
var lock models.ProjectLock
if err := json.Unmarshal(v, &lock); err != nil {
return locks, errors.Wrap(err, fmt.Sprintf("failed to deserialize lock at key %q", string(k)))
return locks, errors.Wrap(err, fmt.Sprintf("failed to deserialize lock at key '%d'", k))
}
locks = append(locks, lock)
}
Expand Down

0 comments on commit d827f2c

Please sign in to comment.