* Return a pretty-formatted error message if the underlying validation error * is a ZodError or some other recognized error type, otherwise return the * default error message.
()
| 34313 | * default error message. |
| 34314 | */ |
| 34315 | pretty() { |
| 34316 | if (this.cause instanceof z6.ZodError) { |
| 34317 | return `${this.rawMessage} |
| 34318 | ${formatZodError(this.cause)}`; |
| 34319 | } else { |
| 34320 | return this.toString(); |
| 34321 | } |
| 34322 | } |
| 34323 | }; |
| 34324 | exports2.SDKValidationError = SDKValidationError; |
| 34325 | function formatZodError(err, level = 0) { |
nothing calls this directly
no test coverage detected