From 869a37ce486cb0ca921449319e1048004b2f1bd8 Mon Sep 17 00:00:00 2001 From: Mitar Date: Mon, 16 Sep 2024 13:18:29 +0200 Subject: [PATCH] fix: do not store stacktrace in sentinel errors (#823) --- errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/errors.go b/errors.go index 0867d937..09ac1d65 100644 --- a/errors.go +++ b/errors.go @@ -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.",