[Groonga-commit] groonga/gcs [master] Report domain name validation error before index field validation error for DeleteIndexField

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Nov 26 19:36:34 JST 2012


YUKI Hiroshi	2012-11-26 19:36:34 +0900 (Mon, 26 Nov 2012)

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

  Log:
    Report domain name validation error before index field validation error for DeleteIndexField

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

  Modified: lib/api/2011-02-01/configuration.js (+2 -2)
===================================================================
--- lib/api/2011-02-01/configuration.js    2012-11-26 19:33:10 +0900 (abe4fde)
+++ lib/api/2011-02-01/configuration.js    2012-11-26 19:36:34 +0900 (1c4b627)
@@ -416,7 +416,7 @@ handlers.DeleteIndexField = function(context, request, response, config) {
     });
   } catch(error) {
     if (error.isValidationError && error.isMultiplexed)
-      validationErrors = error.messages.concat(validationErrors);
+      validationErrors = validationErrors.concat(error.messages);
     else
       throw error;
   }
@@ -440,7 +440,7 @@ handlers.DeleteIndexField = function(context, request, response, config) {
     });
   } catch(error) {
     if (error.isValidationError && error.isMultiplexed) {
-      validationErrors = error.messages.concat(validationErrors);
+      validationErrors = validationErrors.concat(error.messages);
     } else {
       assertNoOtherError();
       throw error;
-------------- next part --------------
HTML����������������������������...
Download 



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