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:
infinite-persistence 2022-02-16 22:47:25 +08:00
parent 50423111af
commit cb441ef5f4
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -18,10 +18,11 @@ class ModalError extends React.PureComponent<Props> {
// Yuck
// 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 thumbnail error shouldn't be routed here, but it's troublesome to create a different path.
let errorMessage = typeof error === 'string' ? error : error.message;
const skipLog =
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) {
try {