mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-05 19:22:34 +02:00
fix(serialization): remove debug stack from error message in mapUnmarshalValidate
This commit is contained in:
parent
88aaf956e5
commit
cb506120dd
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue