Fix error handling in search

This commit is contained in:
2023-05-30 23:35:18 +02:00
parent 7ff314c8fe
commit b2a5d42cdb
3 changed files with 10 additions and 7 deletions

View File

@@ -35,6 +35,9 @@ export const navigate = async (path, push_history) => {
console.debug("Path", path, "was not found, trying to navigate to parent")
navigate(fs_split_path(path).parent, push_history)
}
} else if (err.message) {
console.error(err)
alert("Error: "+err.message)
} else {
console.error(err)
alert("Error: "+err)