diff --git a/src/index.js b/src/index.js index 42e0154..722b0f1 100644 --- a/src/index.js +++ b/src/index.js @@ -144,7 +144,7 @@ module.exports = class WyzeAPI { throw e; } - // this.log.debug(result.data.msg); + if (result.data.code != 1) { this.log.debug(`Potentially recoverable error during request, '${result.data.msg}'`) throw new Error("Potentially recoverable error during request");