We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
key in error
1 parent 81e4316 commit d5f9f98Copy full SHA for d5f9f98
src/schema/associations.ts
@@ -143,8 +143,8 @@ export async function buildAssociations(
143
// @ts-expect-error
144
associations[key] = await load(file, { maxRows: context.dataset.options?.maxRows }).catch(
145
(error: any) => {
146
- if (key in error) {
147
- context.dataset.issues.add({ code: error.key, location: file.path })
+ if (error.code) {
+ context.dataset.issues.add({ ...error, location: file.path })
148
}
149
},
150
)
0 commit comments