@@ -400,7 +400,7 @@ func setFieldWithJSONUnmarshaler(
400400 }
401401
402402 if err := unmarshaler .UnmarshalJSON ([]byte (jsonStr )); err != nil {
403- return fmt .Errorf ("DONE_cannot unmarshal json: %w, %s=%s" , err , fieldInfo .field .Name , jsonStr )
403+ return fmt .Errorf ("cannot unmarshal json: %w, %s=%s" , err , fieldInfo .field .Name , jsonStr )
404404 }
405405
406406 fieldValue .Set (unmarshalerValue )
@@ -473,7 +473,7 @@ func jsObjectToGo[T any](
473473 }
474474
475475 if err = json .Unmarshal ([]byte (jsonString ), tempPtr ); err != nil {
476- err = fmt .Errorf ("DONE_can not unmarshal json: %w, input=%s" , err , jsonString )
476+ err = fmt .Errorf ("can not unmarshal json: %w, input=%s" , err , jsonString )
477477
478478 return processTempValue ("JsObjectToGo" , nil , err , sample )
479479 }
@@ -546,7 +546,7 @@ func createJsFunctionHandler(
546546 jsResult , err := ctx .Invoke (input , ctx .Global (), jsArgs ... )
547547 if err != nil {
548548 results [len (results )- 1 ] = reflect .ValueOf (
549- fmt .Errorf ("DONE_JS function execution failed: %w" , err ),
549+ fmt .Errorf ("JS function execution failed: %w" , err ),
550550 )
551551
552552 return results
@@ -644,7 +644,7 @@ func handleJsFunctionResult(
644644 goResult , err := jsValueToGo [any ](tracker , jsResult )
645645 if err != nil {
646646 results [len (results )- 1 ] = reflect .ValueOf (
647- fmt .Errorf ("DONE_failed to convert JS function result '%s' to Go: %w" , jsResult .Type (), err ),
647+ fmt .Errorf ("failed to convert JS function result '%s' to Go: %w" , jsResult .Type (), err ),
648648 )
649649
650650 return results
@@ -656,7 +656,7 @@ func handleJsFunctionResult(
656656 targetType := fnType .Out (0 )
657657 if ! goResultValue .CanConvert (targetType ) {
658658 results [len (results )- 1 ] = reflect .ValueOf (
659- fmt .Errorf ("DONE_failed to convert JS function return value from %T (%v) to %s" , goResult , goResult , targetType ),
659+ fmt .Errorf ("failed to convert JS function return value from %T (%v) to %s" , goResult , goResult , targetType ),
660660 )
661661
662662 return results
0 commit comments