Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Commit a96949b

Browse files
committed
Use throw instead of console.error
1 parent b50c9cd commit a96949b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/util.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export function downloadTableWith (format, cols, colFields, rows, rowFields, rowHeaderSize, values, filename) {
22
if (format !== 'tsv' && format !== 'csv') {
3-
console.error('Invalid format on downloadTable')
4-
return
3+
throw Error('Invalid format on downloadTable')
54
}
65
const _filename = (filename || getFilenameByDate(new Date())) + '.' + format
76
const delimiter = format === 'tsv' ? '\t' : ','

0 commit comments

Comments
 (0)