@@ -114,7 +114,7 @@ export function valueInterpreter(
114114 } else if ( entry . toLowerCase ( ) === 'false' ) {
115115 return { success : true , value : false } ;
116116 }
117- return { message : ' Undecipherable Boolean Type' , success : false } ;
117+ return { message : ` Undecipherable Boolean Type: ${ entry } ` , success : false } ;
118118 case 'ZodDate' : {
119119 const date = new Date ( entry ) ;
120120 if ( isNaN ( date . getTime ( ) ) ) {
@@ -126,14 +126,14 @@ export function valueInterpreter(
126126 if ( isNumberLike ( entry ) ) {
127127 return { success : true , value : parseNumber ( entry ) } ;
128128 }
129- return { message : ' Invalid number type' , success : false } ;
129+ return { message : ` Invalid number type: ${ entry } ` , success : false } ;
130130 case 'ZodSet' :
131131 if ( entry . includes ( 'SET(' ) ) {
132132 let setData = entry . slice ( 4 , - 1 ) ;
133133 let setDataList = setData . split ( '~~' ) ;
134134 return { success : true , value : new Set ( setDataList ) } ;
135135 }
136- return { message : ' Invalid ZodSet' , success : false } ;
136+ return { message : ` Invalid ZodSet: ${ entry } ` , success : false } ;
137137 case 'ZodString' :
138138 return { success : true , value : entry } ;
139139 case 'ZodEnum' :
0 commit comments