fix: missing error message

pull/1042/head
Ramires Viana 2020-07-20 17:39:14 +00:00
parent 727c63b98e
commit d9be370e24
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ async function resourceAction (url, method, content) {
const res = await fetchURL(`/api/resources${url}`, opts)
if (res.status !== 200) {
throw new Error(res.responseText)
throw new Error(await res.text())
} else {
return res
}