Skip to content

Commit

Permalink
Fixing error message and lowering error to debug as it may be recover…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
hgoscenski committed Feb 13, 2024
1 parent 7b15b79 commit e2a8a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e2a8a76

Please sign in to comment.