Don't report thumbnail size errors
These are now checked at client side (not CDN side), so not actually an error worth collecting. Also removed "Uploading the same file from multiple tabs or windows is not allowed." -- no longer exists.
This commit is contained in:
parent
50423111af
commit
cb441ef5f4
1 changed files with 2 additions and 1 deletions
|
@ -18,10 +18,11 @@ class ModalError extends React.PureComponent<Props> {
|
||||||
// Yuck
|
// Yuck
|
||||||
// https://github.com/lbryio/lbry-sdk/issues/1118
|
// https://github.com/lbryio/lbry-sdk/issues/1118
|
||||||
// The sdk logs failed downloads, they happen so often that it's mostly noise in the desktop logs
|
// The sdk logs failed downloads, they happen so often that it's mostly noise in the desktop logs
|
||||||
|
// The thumbnail error shouldn't be routed here, but it's troublesome to create a different path.
|
||||||
let errorMessage = typeof error === 'string' ? error : error.message;
|
let errorMessage = typeof error === 'string' ? error : error.message;
|
||||||
const skipLog =
|
const skipLog =
|
||||||
errorMessage.startsWith('Failed to download') ||
|
errorMessage.startsWith('Failed to download') ||
|
||||||
errorMessage.endsWith('Uploading the same file from multiple tabs or windows is not allowed.');
|
/^Thumbnail size over (.*)MB, please edit and reupload.$/.test(errorMessage);
|
||||||
|
|
||||||
if (error.cause) {
|
if (error.cause) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue