Update error message
Co-authored-by: Sam Rose <hello@samwho.dev>
This commit is contained in:
parent
a8019d86cc
commit
83dce5de26
|
@ -9,7 +9,7 @@ export function createNavigationStore() {
|
||||||
|
|
||||||
const init = gotoFunc => {
|
const init = gotoFunc => {
|
||||||
if (typeof gotoFunc !== "function") {
|
if (typeof gotoFunc !== "function") {
|
||||||
throw new Error('A valid "gotoFunc" must be provided')
|
throw new Error(`gotoFunc must be a function, found a "${typeof gotoFunc}" instead`)
|
||||||
}
|
}
|
||||||
|
|
||||||
set({
|
set({
|
||||||
|
|
Loading…
Reference in New Issue