Skip to content
Snippets Groups Projects
Unverified Commit 2b4ecc82 authored by Dennis Benz's avatar Dennis Benz Committed by GitHub
Browse files

Show and log video upload errors (#1358)

This patch always shows an error message to users if the upload fails and logs the error into the browser console.
parent 5fe8a1d3
No related branches found
No related tags found
No related merge requests found
......@@ -372,13 +372,13 @@ class UploadService {
uploadDone(episode_id, terms, workflowId);
}
} catch (ex) {
console.log(ex);
console.error(ex);
onError();
/* Catch XML parse error. On Error Resume Next ;-) */
}
}).catch(function (error) {
if (error.code === 'ERR_NETWORK') {
onError();
}
console.error(error);
onError();
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment