Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
fredzqm committed May 10, 2024
1 parent f0d44af commit 3033065
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dataconnect/errors.ts
Expand Up @@ -6,6 +6,9 @@ const INCOMPATIBLE_CONNECTOR_TYPE = "INCOMPATIBLE_CONNECTOR";

export function getIncompatibleSchemaError(err: any): IncompatibleSqlSchemaError | undefined {

Check warning on line 7 in src/dataconnect/errors.ts

View workflow job for this annotation

GitHub Actions / lint (20)

Missing JSDoc comment

Check warning on line 7 in src/dataconnect/errors.ts

View workflow job for this annotation

GitHub Actions / lint (20)

Unexpected any. Specify a different type
const incompatibles = errorDetails(err, INCOMPATIBLE_SCHEMA_ERROR_TYPESTRING);
if (incompatibles.length === 0) {
return undefined;
}
// Should never get multiple incompatible schema errors
const incompatible = incompatibles[0];

Check warning on line 13 in src/dataconnect/errors.ts

View workflow job for this annotation

GitHub Actions / lint (20)

Unsafe assignment of an `any` value
// Extract the violation type from the precondition error detail.
Expand Down

0 comments on commit 3033065

Please sign in to comment.