ActivityPub-federated video streaming platform using P2P directly in your web browser
Add message on 413 http error code
Chocobozzz13fb4de93bef
diff --git a/client/src/app/shared/rest/rest-extractor.service.ts b/client/src/app/shared/rest/rest-extractor.service.tsindex 59dea78801..1b475da89a 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 {} else if (err.error.error) {errorMessage = err.error.error}+ } else if (err.status === 413) {+ errorMessage = 'Request is too large for the server. Please contact you administrator if you want to increase the limit size.'}+errorMessage = errorMessage ? errorMessage : 'Unknown error.'console.error(`Backend returned code ${err.status}, body was: ${errorMessage}`)} else {