mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 19:25:18 -04:00
feat: add note length check on note creation
This check throws a MaximumDocumentLengthExceededError, if the configured maxDocumentLength is exceeded by the new note Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
35032eef09
commit
5275f6b876
7 changed files with 30 additions and 4 deletions
|
@ -55,3 +55,7 @@ export class NoLocalIdentityError extends Error {
|
|||
export class PasswordTooWeakError extends Error {
|
||||
name = 'PasswordTooWeakError';
|
||||
}
|
||||
|
||||
export class MaximumDocumentLengthExceededError extends Error {
|
||||
name = 'MaximumDocumentLengthExceededError';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue