fix: update error types for upstream errors and JSON marshal failure

This commit is contained in:
CaIon committed 2025-08-26 16:26:56 +08:00
1 parent b0f86bd82e
commit 1b8bcfb000
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ func DeepCopy[T any](src *T) (*T, error) {
return nil, fmt.Errorf("copy source cannot be nil")
}
var dst T
err := copier.CopyWithOption(&dst, src, copier.Option{DeepCopy: true, IgnoreEmpty: false})
err := copier.CopyWithOption(&dst, src, copier.Option{DeepCopy: true, IgnoreEmpty: true})
if err != nil {
return nil, err
}