fix error messages

This commit is contained in:
Travis Eden 2018-04-02 16:27:20 -04:00 committed by Sean Yesmunt
parent 9366d09f83
commit 0f31367e26

View file

@ -72,7 +72,7 @@ export const doUploadThumbnail = (filePath: string, nsfw: boolean) => (dispatch:
batchActions( batchActions(
{ {
type: ACTIONS.UPDATE_PUBLISH_FORM, type: ACTIONS.UPDATE_PUBLISH_FORM,
data: { uploadThumbnailStatus: STATUSES.DOWN }, data: { uploadThumbnailStatus: STATUSES.API_DOWN },
}, },
doAlertError(error) doAlertError(error)
) )
@ -104,9 +104,9 @@ export const doUploadThumbnail = (filePath: string, nsfw: boolean) => (dispatch:
thumbnail: `${json.data.url}${fileExt}`, thumbnail: `${json.data.url}${fileExt}`,
}, },
}) })
: uploadError() : uploadError(['Upload failed'])
) )
.catch(() => uploadError()); .catch(err => uploadError([err.message]));
}; };
export const doPrepareEdit = (claim: any) => (dispatch: Dispatch) => { export const doPrepareEdit = (claim: any) => (dispatch: Dispatch) => {