Skip to content

Commit 9f11f10

Browse files
committed
chore: add cause value to createUploadTemplateCsv default error
1 parent 1e042d5 commit 9f11f10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/web/src/features/upload/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,9 @@ export function createUploadTemplateCSV(instrument: AnyUnilingualFormInstrument)
472472
throw e;
473473
}
474474

475-
throw new Error('Error generating Sample CSV template');
475+
throw new Error('Error generating Sample CSV template', {
476+
cause: e
477+
});
476478
}
477479
}
478480

0 commit comments

Comments
 (0)