hedgedoc/src
David Mehren 141dc349e3
NotesController: Do not crash on nonexistent notes
This commit adds proper error handling and returns 404 when a note does not exist.
Previously, we leaked the `NotInDBError` and sent a 500 status code.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-09 22:58:16 +01:00
..
api NotesController: Do not crash on nonexistent notes 2021-01-09 22:58:16 +01:00
authors Change year in copyright to 2021 2021-01-06 22:10:19 +01:00
errors Change year in copyright to 2021 2021-01-06 22:10:19 +01:00
groups Change year in copyright to 2021 2021-01-06 22:10:19 +01:00
history Change year in copyright to 2021 2021-01-06 22:10:19 +01:00
logger Change year in copyright to 2021 2021-01-06 22:10:19 +01:00
media Format with Prettier 2 2021-01-06 23:49:45 +01:00
monitoring Format with Prettier 2 2021-01-06 23:49:45 +01:00
notes Format with Prettier 2 2021-01-06 23:49:45 +01:00
permissions Format with Prettier 2 2021-01-06 23:49:45 +01:00
revisions Format with Prettier 2 2021-01-06 23:49:45 +01:00
users Format with Prettier 2 2021-01-06 23:49:45 +01:00
app.module.ts Change year in copyright to 2021 2021-01-06 22:10:19 +01:00
main.ts Change year in copyright to 2021 2021-01-06 22:10:19 +01:00