Pass spee.ch error message

Otherwise it would just say "upload failed"
This commit is contained in:
Thomas Zarebczan 2018-07-31 19:00:18 -04:00
parent e4f4909725
commit c6f0db1454
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 ([#xxxx](https://github.com/lbryio/lbry-desktop/pull/xxxx))
### 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));
};