MCPcopy Create free account
hub / github.com/dataform-co/dataform / createBigQueryError

Function createBigQueryError

cli/api/dbadapters/bigquery.ts:624–634  ·  view source on GitHub ↗
(jobMetadata: any)

Source from the content-addressed store, hash-verified

622}
623
624function createBigQueryError(jobMetadata: any): IBigQueryError {
625 const error: IBigQueryError = new Error(jobMetadata.status.errorResult.message);
626 if (jobMetadata.jobReference && jobMetadata.jobReference.jobId) {
627 error.metadata = {
628 bigquery: {
629 jobId: jobMetadata.jobReference.jobId,
630 }
631 };
632 }
633 return error;
634}

Callers 1

createQueryJobMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected