Provide a more descriptive error text
parent
3fab51d62b
commit
66025e2336
|
@ -12,7 +12,7 @@ const getCSV = (query, errorThrown) => async () => {
|
||||||
const {name, CSVString} = resultsToCSV(results)
|
const {name, CSVString} = resultsToCSV(results)
|
||||||
download(CSVString, `${name}.csv`, 'text/plain')
|
download(CSVString, `${name}.csv`, 'text/plain')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
errorThrown(error)
|
errorThrown(error, 'Unable to download .csv file')
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue