Added more understandable error message

This commit is contained in:
Liam Cardenas 2017-12-06 12:38:07 -08:00
parent 17b38d687b
commit 6b3685ba09

View file

@ -280,13 +280,17 @@ export function doLoadVideo(uri) {
dispatch(doDownloadFile(uri, streamInfo)); dispatch(doDownloadFile(uri, streamInfo));
} }
}) })
.catch(error => { .catch(() => {
dispatch(doSetPlayingUri(null)); dispatch(doSetPlayingUri(null));
dispatch({ dispatch({
type: types.LOADING_VIDEO_FAILED, type: types.LOADING_VIDEO_FAILED,
data: { uri }, data: { uri },
}); });
dispatch(doAlertError(error)); dispatch(
doAlertError(
`Failed to download ${uri}, please try again. If this problem persists, visit https://lbry.io/faq/support for support.`
)
);
}); });
}; };
} }