Skip to content

Commit 869a37c

Browse files
authored
fix: do not store stacktrace in sentinel errors (#823)
1 parent 11cc702 commit 869a37c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

errors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ import (
2222
var (
2323
// ErrInvalidatedAuthorizeCode is an error indicating that an authorization code has been
2424
// used previously.
25-
ErrInvalidatedAuthorizeCode = errors.New("Authorization code has ben invalidated")
25+
ErrInvalidatedAuthorizeCode = stderr.New("Authorization code has ben invalidated")
2626
// ErrSerializationFailure is an error indicating that the transactional capable storage could not guarantee
2727
// consistency of Update & Delete operations on the same rows between multiple sessions.
28-
ErrSerializationFailure = errors.New("The request could not be completed due to concurrent access")
28+
ErrSerializationFailure = stderr.New("The request could not be completed due to concurrent access")
2929
ErrUnknownRequest = &RFC6749Error{
3030
ErrorField: errUnknownErrorName,
3131
DescriptionField: "The handler is not responsible for this request.",

0 commit comments

Comments
 (0)