From d9be370e2474b8070fa58db920c9481270cc4a48 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Mon, 20 Jul 2020 17:39:14 +0000 Subject: [PATCH] fix: missing error message --- frontend/src/api/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api/files.js b/frontend/src/api/files.js index 5942e71a..b3177c9d 100644 --- a/frontend/src/api/files.js +++ b/frontend/src/api/files.js @@ -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 }