@iobroker/socket-classes 0.4.8 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/socketCommon.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/socketCommon.js
CHANGED
|
@@ -108,7 +108,9 @@ class SocketCommon {
|
|
|
108
108
|
this.server.on('error', (error, details) => {
|
|
109
109
|
// ignore "failed connection" as it already shown
|
|
110
110
|
if (!error || !error.message || !error.message.includes('failed connection')) {
|
|
111
|
-
if (error && error.message && error.message.includes('authentication failed')
|
|
111
|
+
if ((error && error.message && error.message.includes('authentication failed') ||
|
|
112
|
+
(details && details.includes('authentication failed')))
|
|
113
|
+
) {
|
|
112
114
|
this.adapter.log.debug(`Error: ${(error && error.message) || JSON.stringify(error)}${details ? ' - ' + details : ''}`);
|
|
113
115
|
} else {
|
|
114
116
|
this.adapter.log.error(`Error: ${(error && error.message) || JSON.stringify(error)}${details ? ' - ' + details : ''}`);
|