MCPcopy Index your code
hub / github.com/lingodotdev/lingo.dev / isValidationError

Function isValidationError

packages/cli/src/cli/utils/errors.ts:114–118  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

112}
113
114export function isValidationError(error: any): error is ValidationError {
115 return (
116 error instanceof ValidationError || error.errorType === "validation_error"
117 );
118}
119
120export function isLocalizationError(error: any): error is LocalizationError {
121 return (

Callers 1

getCLIErrorTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected