Skip to content

Commit

Permalink
fix: do not store stacktrace in sentinel errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar committed Sep 14, 2024
1 parent 8631deb commit 46b3a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (
var (
// ErrInvalidatedAuthorizeCode is an error indicating that an authorization code has been
// used previously.
ErrInvalidatedAuthorizeCode = errors.New("Authorization code has ben invalidated")
ErrInvalidatedAuthorizeCode = stderr.New("Authorization code has ben invalidated")
// ErrSerializationFailure is an error indicating that the transactional capable storage could not guarantee
// consistency of Update & Delete operations on the same rows between multiple sessions.
ErrSerializationFailure = errors.New("The request could not be completed due to concurrent access")
ErrSerializationFailure = stderr.New("The request could not be completed due to concurrent access")
ErrUnknownRequest = &RFC6749Error{
ErrorField: errUnknownErrorName,
DescriptionField: "The handler is not responsible for this request.",
Expand Down

0 comments on commit 46b3a34

Please sign in to comment.