mirror of
https://github.com/skydiver/ewelink-api.git
synced 2025-12-27 07:31:41 +01:00
getDevices: improved error message
This commit is contained in:
@@ -16,7 +16,7 @@ module.exports = {
|
||||
const thingList = _get(response, 'thingList', false);
|
||||
|
||||
if (error) {
|
||||
return { error, msg: errors[error] };
|
||||
throw new Error(`[${error}] ${errors[error]}`);
|
||||
}
|
||||
|
||||
if (!thingList) {
|
||||
|
||||
Reference in New Issue
Block a user