prepend write failed message

pull/10616/head
Jade McGough 2017-05-26 16:40:25 -07:00
parent 889c874d01
commit 3827003ec4
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ export const writeDataAsync = (source, db, data) => async dispatch => {
)
)
} catch (response) {
dispatch(errorThrown(response, response.data.error))
const errorMessage = `Write Failed: ${response.data.error}`
dispatch(errorThrown(response, errorMessage))
throw response
}
}