diff --git a/frontend/web/project/api.js b/frontend/web/project/api.js index 665f118fd2f3..1f33a17a6bf4 100644 --- a/frontend/web/project/api.js +++ b/frontend/web/project/api.js @@ -17,7 +17,13 @@ global.API = { // Catch coding errors that end up here if (res instanceof Error) { - console.log(res) + console.error(res) + store.error = res + store.goneABitWest() + return + } else if (res.data) { + store.error = res.data + store.goneABitWest() return }