fix(smalltrip,problem): name NewInternalServerError instead of NewInternalError

This commit is contained in:
Guz
2025-07-30 19:14:59 -03:00
parent 2acd042352
commit b6a41a168b

View File

@@ -22,7 +22,7 @@ import (
"time" "time"
) )
func NewInternalError(err error, opts ...Option) InternalServerError { func NewInternalServerError(err error, opts ...Option) InternalServerError {
return InternalServerError{ return InternalServerError{
RegisteredProblem: NewDetailed(http.StatusInternalServerError, err.Error(), opts...), RegisteredProblem: NewDetailed(http.StatusInternalServerError, err.Error(), opts...),
Errors: newErrorTree(err).Errors, Errors: newErrorTree(err).Errors,