Skip to content

Commit

Permalink
Wrap error into error message
Browse files Browse the repository at this point in the history
Co-authored-by: Valérian Rousset <[email protected]>
  • Loading branch information
JulienVig and tharvik authored Feb 8, 2024
1 parent 85cf6bf commit a65205d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions discojs/discojs-core/src/dataset/data/tabular_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export class TabularData extends Data {
try {
await dataset.iterator()
} catch (e) {
console.error('Data input format is not compatible with the chosen task.')
throw (e)
throw new Error('Data input format is not compatible with the chosen task.', { cause: e })
}

return new TabularData(dataset, task, size)
Expand Down

0 comments on commit a65205d

Please sign in to comment.