Correct error message to say sheets when it's a Google sheet.
This commit is contained in:
parent
b7ff1d60f1
commit
39292e88a8
|
@ -57,7 +57,7 @@
|
|||
{#if $store.error}
|
||||
<InlineAlert
|
||||
type="error"
|
||||
header={$store.error.title}
|
||||
header="Error fetching {tableType}"
|
||||
message={$store.error.description}
|
||||
/>
|
||||
{/if}
|
||||
|
|
|
@ -11,15 +11,11 @@ import { TableNames } from "constants"
|
|||
|
||||
class TableImportError extends Error {
|
||||
constructor(errors) {
|
||||
super(`Error importing tables: ${Object.keys(errors).join(", ")}`)
|
||||
super()
|
||||
this.name = "TableImportError"
|
||||
this.errors = errors
|
||||
}
|
||||
|
||||
get title() {
|
||||
return `Error fetching tables`
|
||||
}
|
||||
|
||||
get description() {
|
||||
let message = ""
|
||||
for (const key in this.errors) {
|
||||
|
|
Loading…
Reference in New Issue