Correct error message.
This commit is contained in:
parent
d7ffdf02c2
commit
559988e011
|
@ -83,7 +83,7 @@ export async function search(
|
||||||
table = source
|
table = source
|
||||||
options = searchInputMapping(table, options)
|
options = searchInputMapping(table, options)
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Invalid source ID: ${options.viewId || options.tableId}`)
|
throw new Error(`Must supply either a view ID or a table ID`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.query) {
|
if (options.query) {
|
||||||
|
|
Loading…
Reference in New Issue