Skip to content

Commit 00ba21a

Browse files
stefanjudisdkundel
authored andcommitted
fix(client): fix client service error information (#10)
1 parent 47de348 commit 00ba21a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/client.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ export class TwilioServerlessApiClient extends events.EventEmitter {
332332
`Service with name "${config.serviceName}" already exists with SID "${alternativeServiceSid}".`
333333
);
334334
error.name = 'conflicting-servicename';
335-
Object.defineProperty(err, 'serviceSid', {
335+
Object.defineProperty(error, 'serviceSid', {
336336
value: alternativeServiceSid,
337337
});
338-
Object.defineProperty(err, 'serviceName', {
338+
Object.defineProperty(error, 'serviceName', {
339339
value: config.serviceName,
340340
});
341341
throw error;

0 commit comments

Comments
 (0)