From c6f0db1454f4256bb26c97388691bfcc1181bdb5 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Tue, 31 Jul 2018 19:00:18 -0400 Subject: [PATCH] Pass spee.ch error message Otherwise it would just say "upload failed" --- CHANGELOG.md | 1 + src/renderer/redux/actions/publish.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f662a36e3..5911bfc57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/renderer/redux/actions/publish.js b/src/renderer/redux/actions/publish.js index 3f2f8c871..72926928b 100644 --- a/src/renderer/redux/actions/publish.js +++ b/src/renderer/redux/actions/publish.js @@ -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)); };