[Pkg-javascript-commits] [node-expat] 21/371: README: Error handling

Jonas Smedegaard dr at jones.dk
Sun Feb 28 09:59:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-expat.

commit 1c3b5a7d3fb6a2f66dc210438ca62e06b1b4728e
Author: Astro <astro at spaceboyz.net>
Date:   Sun May 30 14:24:47 2010 +0200

    README: Error handling
---
 README.markdown | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/README.markdown b/README.markdown
index a6d4825..28e9881 100644
--- a/README.markdown
+++ b/README.markdown
@@ -33,6 +33,12 @@ So far, three events are emitted by a parser:
 
 Use `test.js` for reference.
 
+## Error handling ##
+
+We don't emit an error event because libexpat doesn't use a callback
+either. Instead, check that `parse()` returns `true`. A descriptive
+string can be obtained via `getError()` for user feedback.
+
 ## Namespace handling ##
 
 A word about special parsing of *xmlns:* this is not neccessary in a

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-expat.git



More information about the Pkg-javascript-commits mailing list