Commit 3d0dcc67 authored by Mark Harding's avatar Mark Harding

(fix): catch error message

parent 092e10a9
No related merge requests found
Pipeline #65916399 (#494) passed with stages
in 42 minutes and 34 seconds
......@@ -231,10 +231,11 @@ export class MindsVideoComponent {
const success = this.pickNextBestSource();
if (!success) {
let response: any = await this.client.get(`api/v1/media/transcoding/${this.guid}`);
this.transcoding = response.transcoding;
if (response.error) {
this.transcodingError = response.error;
try {
let response: any = await this.client.get(`api/v1/media/transcoding/${this.guid}`);
this.transcoding = response.transcoding;
} catch (e) {
this.transcodingError = e.error;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment