[Groonga-commit] groonga/gcs [master] Re-raise any error even if it is not expected type error

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 15 18:24:42 JST 2012


YUKI Hiroshi	2012-11-15 18:24:42 +0900 (Thu, 15 Nov 2012)

  New Revision: 072bd83924e06f7fb8c678a18f0af26bbfb038ca
  https://github.com/groonga/gcs/commit/072bd83924e06f7fb8c678a18f0af26bbfb038ca

  Log:
    Re-raise any error even if it is not expected type error

  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-15 18:23:42 +0900 (5bf4418)
+++ lib/api/2011-02-01/configuration.js    2012-11-15 18:24:42 +0900 (6d84646)
@@ -19,8 +19,8 @@ function handleDomanValidationError(process, variables) {
                     NAME_FIELD: 'domainName'
                   };
       error.message = error.message.replace(/%NAME_FIELD%/g, variables.NAME_FIELD);
-      throw error;
     }
+    throw error;
   }
 }
 
@@ -36,8 +36,8 @@ function handleIndexFieldValidationError(process, variables) {
       error.message = error.message
                         .replace(/%NAME_FIELD%/g, variables.NAME_FIELD)
                         .replace(/%TYPE_FIELD%/g, variables.TYPE_FIELD);
-      throw error;
     }
+    throw error;
   }
 }
 
-------------- next part --------------
HTML����������������������������...
下载 



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