Skip to content

Commit 9710236

Browse files
committed
Fix error on connect
1 parent e4ab05d commit 9710236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-iot-client-mqtt/arduino-iot-client-mqtt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class ArduinoClientMqtt {
117117

118118
client.on("error", (err) => {
119119
reject(
120-
new ArduinoCloudError(errorCode, errorMessage),
120+
new ArduinoCloudError(5, err.toString()),
121121
);
122122
});
123123

0 commit comments

Comments
 (0)