Skip to content

Commit ca536f1

Browse files
authored
feat(gteam-internal): add item information to error message (#14)
1 parent 182fcec commit ca536f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gteam-internal/push-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ async function wrapPushData<T extends object, R>(
2424
): Promise<R | undefined> {
2525
const msg = 'Dataset validation failed';
2626
const { droppedItems, pushResult } = await pushDataWithSchemaRepair(pushFn, data);
27-
for (const { errors } of droppedItems) {
28-
log.error(msg, { msg, validationErrors: errors });
27+
for (const { item, errors } of droppedItems) {
28+
log.error(msg, { msg, validationErrors: errors, item: JSON.stringify(item) });
2929
}
3030
return pushResult;
3131
}

0 commit comments

Comments
 (0)