Skip to content

Commit

Permalink
Update error description for DuplicateDeviceId
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Apr 3, 2024
1 parent d9021b2 commit 6a86a95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ class DuplicateDeviceId {
constructor(device) {
this.name = 'DUPLICATE_DEVICE_ID';
this.message =
'A device with the same pair (Service, DeviceId) was found:' + device.id + ' and ' + JSON.stringify(device);
'A device with the same info (DeviceId, ApiKey, Service, Subservice) was found:' +
device.id +
' and ' +
JSON.stringify(device);
this.code = 409;
}
}
Expand Down

0 comments on commit 6a86a95

Please sign in to comment.