Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit f308d6a

Browse files
committed
Attach error to msg and send if an error occurs.
1 parent 91ffb5b commit f308d6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

transports/ldap/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ module.exports = function (RED) {
6868

6969
node.status({ fill: 'green', shape: 'dot', text: 'completed' });
7070
} catch (err) {
71+
msg.error = err;
72+
node.send(msg);
7173
node.status({ fill: 'red', shape: 'ring', text: 'failed' });
7274
node.error(err ? err.toString() : 'Unknown error' );
7375
}

0 commit comments

Comments
 (0)