[Pkg-javascript-commits] [ltx] 20/469: examples/send_message: tell on authFailure
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:00:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit c303e0a786603bccbcd14d55c82c89d0186fb299
Author: Astro <astro at spaceboyz.net>
Date: Sun May 30 22:52:40 2010 +0200
examples/send_message: tell on authFailure
---
examples/send_message.js | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/examples/send_message.js b/examples/send_message.js
index 7053b77..eff822c 100644
--- a/examples/send_message.js
+++ b/examples/send_message.js
@@ -22,3 +22,12 @@ cl.addListener('online',
});
cl.end();
});
+cl.addListener('authFail',
+ function() {
+ sys.puts("Authentication failure");
+ process.exit(1);
+ });
+cl.addListener('end',
+ function() {
+ /* node.js will exit by itself */
+ });
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list