[Groonga-commit] groonga/gcs [master] Ignore validation error on DescribeIndexFields

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Nov 19 16:30:27 JST 2012


YUKI Hiroshi	2012-11-19 16:30:27 +0900 (Mon, 19 Nov 2012)

  New Revision: da31f4bdf5db43b934f9ec32b99ed64d14bfde00
  https://github.com/groonga/gcs/commit/da31f4bdf5db43b934f9ec32b99ed64d14bfde00

  Log:
    Ignore validation error on DescribeIndexFields

  Modified files:
    lib/api/2011-02-01/configuration.js

  Modified: lib/api/2011-02-01/configuration.js (+6 -2)
===================================================================
--- lib/api/2011-02-01/configuration.js    2012-11-19 15:33:12 +0900 (45dd743)
+++ lib/api/2011-02-01/configuration.js    2012-11-19 16:30:27 +0900 (efb8897)
@@ -405,8 +405,12 @@ handlers.DescribeIndexFields = function(context, request, response, config) {
       });
   var fields = fieldNames.length ?
                   fieldNames.map(function(name) {
-                    var field = domain.getIndexField(name);
-                    return field.exists() ? field : null ;
+                    try {
+                      var field = domain.getIndexField(name);
+                      return field.exists() ? field : null ;
+                    } catch(error) {
+                      return null;
+                    }
                   }).filter(function(field) {
                     return field;
                   }) :
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index