Skip to content

Commit cdbaa99

Browse files
committed
fix: linter issue
1 parent e3adc92 commit cdbaa99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/db/snapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export async function importQuestions(file: File): Promise<ImportResult> {
131131
raw = JSON.parse(text)
132132
if (!Array.isArray(raw)) throw new Error('Expected a JSON array')
133133
} catch (e) {
134-
throw new Error(`Invalid JSON: ${(e as Error).message}`)
134+
throw new Error(`Invalid JSON: ${(e as Error).message}`, { cause: e })
135135
}
136136

137137
const result: ImportResult = { imported: 0, skipped: 0, errors: [] }

0 commit comments

Comments
 (0)