Show endpoint in errors

This commit is contained in:
Natsumi
2021-03-28 01:52:11 +13:00
parent 0a3e626e18
commit fc19ce7371
+3 -2
View File
@@ -408,12 +408,13 @@ speechSynthesis.getVoices();
this.$throw( this.$throw(
data.error.status_code || status, data.error.status_code || status,
data.error.message, data.error.message,
data.error.data endpoint
); );
} else if (typeof data.error === 'string') { } else if (typeof data.error === 'string') {
this.$throw( this.$throw(
data.status_code || status, data.status_code || status,
data.error data.error,
endpoint
); );
} }
this.$throw(status, data); this.$throw(status, data);