MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / pretty

Method pretty

out/cli.cjs:34315–34322  ·  view source on GitHub ↗

* 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.

()

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

formatZodErrorFunction · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected