@@ -294,14 +294,14 @@ type Subproblem struct {
294294}
295295
296296// NewError creates a new Error.
297- func NewError (pt ProblemType , msg string , args ... interface {} ) * Error {
297+ func NewError (pt ProblemType , msg string , args ... any ) * Error {
298298 return newError (pt , errors .Errorf (msg , args ... ))
299299}
300300
301301// NewDetailedError creates a new Error that includes the error
302302// message in the details, providing more information to the
303303// ACME client.
304- func NewDetailedError (pt ProblemType , msg string , args ... interface {} ) * Error {
304+ func NewDetailedError (pt ProblemType , msg string , args ... any ) * Error {
305305 return NewError (pt , msg , args ... ).withDetail ()
306306}
307307
@@ -324,7 +324,7 @@ func (e *Error) AddSubproblems(subproblems ...Subproblem) *Error {
324324// NewSubproblem creates a new Subproblem. The msg and args
325325// are used to create a new error, which is set as the Detail, allowing
326326// for more detailed error messages to be returned to the ACME client.
327- func NewSubproblem (pt ProblemType , msg string , args ... interface {} ) Subproblem {
327+ func NewSubproblem (pt ProblemType , msg string , args ... any ) Subproblem {
328328 e := newError (pt , fmt .Errorf (msg , args ... ))
329329 s := Subproblem {
330330 Type : e .Type ,
@@ -335,7 +335,7 @@ func NewSubproblem(pt ProblemType, msg string, args ...interface{}) Subproblem {
335335
336336// NewSubproblemWithIdentifier creates a new Subproblem with a specific ACME
337337// Identifier. It calls NewSubproblem and sets the Identifier.
338- func NewSubproblemWithIdentifier (pt ProblemType , identifier Identifier , msg string , args ... interface {} ) Subproblem {
338+ func NewSubproblemWithIdentifier (pt ProblemType , identifier Identifier , msg string , args ... any ) Subproblem {
339339 s := NewSubproblem (pt , msg , args ... )
340340 s .Identifier = & identifier
341341 return s
@@ -362,12 +362,12 @@ func newError(pt ProblemType, err error) *Error {
362362}
363363
364364// NewErrorISE creates a new ErrorServerInternalType Error.
365- func NewErrorISE (msg string , args ... interface {} ) * Error {
365+ func NewErrorISE (msg string , args ... any ) * Error {
366366 return NewError (ErrorServerInternalType , msg , args ... )
367367}
368368
369369// WrapError attempts to wrap the internal error.
370- func WrapError (typ ProblemType , err error , msg string , args ... interface {} ) * Error {
370+ func WrapError (typ ProblemType , err error , msg string , args ... any ) * Error {
371371 var e * Error
372372 switch {
373373 case err == nil :
@@ -384,12 +384,12 @@ func WrapError(typ ProblemType, err error, msg string, args ...interface{}) *Err
384384 }
385385}
386386
387- func WrapDetailedError (typ ProblemType , err error , msg string , args ... interface {} ) * Error {
387+ func WrapDetailedError (typ ProblemType , err error , msg string , args ... any ) * Error {
388388 return WrapError (typ , err , msg , args ... ).withDetail ()
389389}
390390
391391// WrapErrorISE shortcut to wrap an internal server error type.
392- func WrapErrorISE (err error , msg string , args ... interface {} ) * Error {
392+ func WrapErrorISE (err error , msg string , args ... any ) * Error {
393393 return WrapError (ErrorServerInternalType , err , msg , args ... )
394394}
395395
@@ -415,7 +415,7 @@ func (e *Error) Cause() error {
415415}
416416
417417// ToLog implements the EnableLogger interface.
418- func (e * Error ) ToLog () (interface {} , error ) {
418+ func (e * Error ) ToLog () (any , error ) {
419419 b , err := json .Marshal (e )
420420 if err != nil {
421421 return nil , WrapErrorISE (err , "error marshaling acme.Error for logging" )
0 commit comments