mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-01 20:52:27 +08:00
Fix returned status when content is not found.
This commit is contained in:
parent
1ab683b1e7
commit
0e03c8348a
@ -21,7 +21,7 @@ export function createPartialContentHandler(contentProvider: ContentProvider, lo
|
||||
} catch (error) {
|
||||
logger.debug("ContentProvider threw exception: ", error);
|
||||
if (error instanceof ContentDoesNotExistError) {
|
||||
return res.status(400).send(error.message);
|
||||
return res.status(404).send(error.message);
|
||||
}
|
||||
return res.sendStatus(500);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user