Skip to content

Commit 34e2d82

Browse files
committed
fix error management
1 parent 1befc9f commit 34e2d82

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
@@ -280,7 +280,7 @@ class ArduinoClientMqtt {
280280
this.connection.topics[topic].push(cb);
281281
return resolve(topic);
282282
} else {
283-
reject(new Error(`subscription failed: ${error.errorMessage}`));
283+
reject(new Error(`subscription failed: ${err.toString()}`));
284284
}
285285
});
286286
});

0 commit comments

Comments
 (0)