YUKI Hiroshi
null+****@clear*****
Mon Nov 26 19:27:23 JST 2012
YUKI Hiroshi 2012-11-26 19:27:23 +0900 (Mon, 26 Nov 2012) New Revision: 06698544cc06068d27311021e005ef706e2e1d46 https://github.com/groonga/gcs/commit/06698544cc06068d27311021e005ef706e2e1d46 Log: Report index field validation errors before domain name validation errors Modified files: lib/api/2011-02-01/configuration.js Modified: lib/api/2011-02-01/configuration.js (+4 -4) =================================================================== --- lib/api/2011-02-01/configuration.js 2012-11-26 19:25:31 +0900 (1377106) +++ lib/api/2011-02-01/configuration.js 2012-11-26 19:27:23 +0900 (b658684) @@ -335,7 +335,7 @@ handlers.DefineIndexField = function(context, request, response, config) { } catch(error) { domainValidationError = error; if (error.isValidationError && error.isMultiplexed) - validationErrors = validationErrors.concat(error.messages); + validationErrors = error.messages.concat(validationErrors); else throw error; } @@ -358,7 +358,7 @@ handlers.DefineIndexField = function(context, request, response, config) { }); } catch(error) { if (error.isValidationError && error.isMultiplexed) { - validationErrors = validationErrors.concat(error.messages); + validationErrors = error.messages.concat(validationErrors); } else { assertNoOtherError(); throw error; @@ -417,7 +417,7 @@ handlers.DeleteIndexField = function(context, request, response, config) { } catch(error) { domainValidationError = error; if (error.isValidationError && error.isMultiplexed) - validationErrors = validationErrors.concat(error.messages); + validationErrors = error.messages.concat(validationErrors); else throw error; } @@ -441,7 +441,7 @@ handlers.DeleteIndexField = function(context, request, response, config) { }); } catch(error) { if (error.isValidationError && error.isMultiplexed) { - validationErrors = validationErrors.concat(error.messages); + validationErrors = error.messages.concat(validationErrors); } else { assertNoOtherError(); throw error; -------------- next part -------------- HTML����������������������������... 下载