fix(serialization): remove debug stack from error message in mapUnmarshalValidate

This commit is contained in:
yusing 2025-05-31 22:51:30 +08:00
parent 88aaf956e5
commit cb506120dd

View file

@ -5,7 +5,6 @@ import (
"errors" "errors"
"os" "os"
"reflect" "reflect"
"runtime/debug"
"strconv" "strconv"
"strings" "strings"
"time" "time"
@ -198,7 +197,7 @@ func mapUnmarshalValidate(src SerializedObject, dst any, checkValidateTag bool)
dstV.Set(reflect.Zero(dstT)) dstV.Set(reflect.Zero(dstT))
return nil return nil
} }
return gperr.Errorf("deserialize: src is %w and dst is not settable\n%s", ErrNilValue, debug.Stack()) return gperr.Errorf("deserialize: src is %w and dst is not settable", ErrNilValue)
} }
if dstT.Implements(mapUnmarshalerType) { if dstT.Implements(mapUnmarshalerType) {