From fc19ce73710516498f4909cfbcc8ba575897f680 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Sun, 28 Mar 2021 01:52:11 +1300 Subject: [PATCH] Show endpoint in errors --- html/src/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index d97b3fb7..467b0fcc 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -408,12 +408,13 @@ speechSynthesis.getVoices(); this.$throw( data.error.status_code || status, data.error.message, - data.error.data + endpoint ); } else if (typeof data.error === 'string') { this.$throw( data.status_code || status, - data.error + data.error, + endpoint ); } this.$throw(status, data);