Skip to content
Snippets Groups Projects
Commit c2c7e12a authored by HJ's avatar HJ :fire:
Browse files

review/remove error hiding

parent d766059d
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!669transition to MastoAPI: Basic user/statuses manipulation
Pipeline #9549 passed
......@@ -423,7 +423,7 @@ const favorite = ({ id, credentials }) => {
if (response.ok) {
return response.json()
} else {
return {}
throw new Error('Error favoriting post')
}
})
.then((data) => parseStatus(data))
......@@ -438,7 +438,7 @@ const unfavorite = ({ id, credentials }) => {
if (response.ok) {
return response.json()
} else {
return {}
throw new Error('Error removing favorite')
}
})
.then((data) => parseStatus(data))
......@@ -453,7 +453,7 @@ const retweet = ({ id, credentials }) => {
if (response.ok) {
return response.json()
} else {
return {}
throw new Error('Error repeating post')
}
})
.then((data) => parseStatus(data))
......@@ -468,7 +468,7 @@ const unretweet = ({ id, credentials }) => {
if (response.ok) {
return response.json()
} else {
return {}
throw new Error('Error removing repeat')
}
})
.then((data) => parseStatus(data))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment