Skip to content

Commit 5375d81

Browse files
committed
Fixed error message details
1 parent 3a41581 commit 5375d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/telnyx/telnyx.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default {
6969
},
7070
throwFormattedError(error) {
7171
error = error.response;
72-
throw new Error(`${error.status} - ${error.statusText} - ${error.data.message}`);
72+
throw new Error(`${error.status} - ${error.statusText} - ${error.data.errors[0].detail}`);
7373
},
7474
async sendMessage(args) {
7575
return this.makeRequest({

0 commit comments

Comments
 (0)