From e2a8a76f7a16c50433e77ed52c5af5e446cad9ab Mon Sep 17 00:00:00 2001 From: Harrison Goscenski Date: Tue, 13 Feb 2024 09:36:29 -0600 Subject: [PATCH] Fixing error message and lowering error to debug as it may be recoverable --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index b7cc9d7..f5d12df 100644 --- a/src/index.js +++ b/src/index.js @@ -147,8 +147,8 @@ module.exports = class WyzeAPI { } // this.log.debug(result.data.msg); if (result.data.code != 1) { - this.log.error(`Error during request, '${result.data.msg}'`) - throw new Error("Error during request"); + this.log.debug(`Potentially recoverable error during request, '${result.data.msg}'`) + throw new Error("Potentially recoverable error during request"); } return result; }