Update error message

Co-authored-by: Sam Rose <hello@samwho.dev>
This commit is contained in:
Adria Navarro 2024-01-08 12:48:04 +01:00 committed by GitHub
parent a8019d86cc
commit 83dce5de26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ export function createNavigationStore() {
const init = gotoFunc => {
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({