Merge pull request #822 from lbryio/smartertimeoutmodal

Added more understandable error message
This commit is contained in:
Liam Cardenas 2017-12-08 08:37:45 -08:00 committed by GitHub
commit 321051b6eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -280,13 +280,17 @@ export function doLoadVideo(uri) {
dispatch(doDownloadFile(uri, streamInfo));
}
})
.catch(error => {
.catch(() => {
dispatch(doSetPlayingUri(null));
dispatch({
type: types.LOADING_VIDEO_FAILED,
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.`
)
);
});
};
}