Merge pull request #1840 from lbryio/speech-error-msg

Pass spee.ch error message
This commit is contained in:
Sean Yesmunt 2018-08-01 11:14:33 -04:00 committed by GitHub
commit 301fa156ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
* Add FAQ to Publishing Area ([#1833](https://github.com/lbryio/lbry-desktop/pull/1833))
### Changed
* Pass error message from spee.ch API during thumbnail upload ([#1840](https://github.com/lbryio/lbry-desktop/pull/1840))
### Fixed

View file

@ -120,7 +120,7 @@ export const doUploadThumbnail = (filePath: string, nsfw: boolean) => (dispatch:
thumbnail: `${json.data.url}${fileExt}`,
},
})
: uploadError('Upload failed')
: uploadError(json.message)
)
.catch(err => uploadError(err.message));
};