Skip to content

Commit

Permalink
Merge pull request #31 from sunesimonsen/ssimonsen/lowercase-errors
Browse files Browse the repository at this point in the history
Stop using title case in error messages
  • Loading branch information
sunesimonsen committed May 31, 2023
2 parents a0b01cc + e5f13c6 commit b187fec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uploads.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (store *Store) Upload(ctx context.Context, r io.Reader) (UploadToken, error
// from the upload and returns its id.
func (store *Store) CommitUpload(tr fdb.Transaction, token UploadToken) (Id, error) {
if token.dir == nil {
return "", errors.New("Invalid upload token, tokens needs to be produced by the upload method")
return "", errors.New("invalid upload token, tokens needs to be produced by the upload method")
}

uploadDir := token.dir
Expand Down
2 changes: 1 addition & 1 deletion uploads_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestUploadCommit(t *testing.T) {
_, err := transact(db, func(tr fdb.Transaction) (any, error) {
return store.CommitUpload(tr, UploadToken{})
})
assert.EqualError(t, err, "Invalid upload token, tokens needs to be produced by the upload method")
assert.EqualError(t, err, "invalid upload token, tokens needs to be produced by the upload method")
})
}

Expand Down

0 comments on commit b187fec

Please sign in to comment.