diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-29 16:15:39 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-29 16:15:39 +0100 |
commit | 13fb4de93befee792772284ffa70a952dc407148 (patch) | |
tree | 626788cf45dece9cd7229c3a89367e295704bf56 /client/src/app/shared/rest | |
parent | ba12e8b3a6de8ac82101894abe7460b392fec42a (diff) | |
download | PeerTube-13fb4de93befee792772284ffa70a952dc407148.tar.gz PeerTube-13fb4de93befee792772284ffa70a952dc407148.tar.zst PeerTube-13fb4de93befee792772284ffa70a952dc407148.zip |
Add message on 413 http error code
Diffstat (limited to 'client/src/app/shared/rest')
-rw-r--r-- | client/src/app/shared/rest/rest-extractor.service.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/app/shared/rest/rest-extractor.service.ts b/client/src/app/shared/rest/rest-extractor.service.ts index 59dea7880..1b475da89 100644 --- a/client/src/app/shared/rest/rest-extractor.service.ts +++ b/client/src/app/shared/rest/rest-extractor.service.ts | |||
@@ -59,7 +59,10 @@ export class RestExtractor { | |||
59 | } else if (err.error.error) { | 59 | } else if (err.error.error) { |
60 | errorMessage = err.error.error | 60 | errorMessage = err.error.error |
61 | } | 61 | } |
62 | } else if (err.status === 413) { | ||
63 | errorMessage = 'Request is too large for the server. Please contact you administrator if you want to increase the limit size.' | ||
62 | } | 64 | } |
65 | |||
63 | errorMessage = errorMessage ? errorMessage : 'Unknown error.' | 66 | errorMessage = errorMessage ? errorMessage : 'Unknown error.' |
64 | console.error(`Backend returned code ${err.status}, body was: ${errorMessage}`) | 67 | console.error(`Backend returned code ${err.status}, body was: ${errorMessage}`) |
65 | } else { | 68 | } else { |