From f4120aea7a4b4785cc59b690b9187621c84126af Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 May 2022 14:54:54 +0200 Subject: Fix video upload with some characters in filename --- .../+videos/+video-edit/video-add-components/video-upload.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app') diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts index 7cb3d8300..663955d27 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts @@ -136,7 +136,7 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy return this.refereshTokenAndRetryUpload() } - const error = state.response?.error || 'Unknow error' + const error = state.response?.error?.message || state.response?.error || 'Unknown error' this.handleUploadError({ error: new Error(error), -- cgit v1.2.3