[Groonga-commit] groonga/gcs [master] Output error XML for parsing error

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 26日 (木) 16:56:50 JST


SHIMODA Hiroshi	2012-07-26 16:56:50 +0900 (Thu, 26 Jul 2012)

  New Revision: 82e7b36a1f602e54db8f7311a35fa08f713deb30
  https://github.com/groonga/gcs/commit/82e7b36a1f602e54db8f7311a35fa08f713deb30

  Log:
    Output error XML for parsing error

  Modified files:
    test/test-utils.js

  Modified: test/test-utils.js (+6 -1)
===================================================================
--- test/test-utils.js    2012-07-26 16:35:22 +0900 (c504a8d)
+++ test/test-utils.js    2012-07-26 16:56:50 +0900 (db24971)
@@ -143,7 +143,12 @@ function XMLStringToJSON(xml) {
   parser.addListener('end', function(result) {
     json = result;
   });
-  parser.parseString(xml);
+  try {
+    parser.parseString(xml);
+  } catch(e) {
+    console.log(xml);
+    throw e;
+  }
   return json;
 }
 exports.XMLStringToJSON = XMLStringToJSON;
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



Groonga-commit メーリングリストの案内
Back to archive index