From 003add4b3b5a21fd85bd459a1bbd744ca8505868 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Wed, 28 Aug 2024 11:41:14 +0100 Subject: [PATCH] feat: Switch to AuthenticationFailure if we get a 403 --- src/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.js b/src/api.js index da3d291..f964bda 100644 --- a/src/api.js +++ b/src/api.js @@ -106,7 +106,7 @@ module.exports = { self.checkVariables() } else { if (response.statusCode == 403) { - self.updateStatus(InstanceStatus.ConnectionFailure, 'Error 403, PSK may be incorrect.') + self.updateStatus(InstanceStatus.AuthenticationFailure, 'Error 403, PSK may be incorrect.') self.log('error', 'PSK may be incorrect. Please check your PSK and try again.') self.stopInterval() }