[Groonga-commit] groonga/gcs [master] Fix error response format

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 14 17:28:28 JST 2012


YUKI Hiroshi	2012-11-14 17:28:28 +0900 (Wed, 14 Nov 2012)

  New Revision: 3b448223963b5b3f66afceba59813ba040315723
  https://github.com/groonga/gcs/commit/3b448223963b5b3f66afceba59813ba040315723

  Log:
    Fix error response format

  Modified files:
    tools/scenario-runner.js

  Modified: tools/scenario-runner.js (+1 -1)
===================================================================
--- tools/scenario-runner.js    2012-11-14 17:24:59 +0900 (12dd928)
+++ tools/scenario-runner.js    2012-11-14 17:28:28 +0900 (84de70e)
@@ -95,7 +95,7 @@ ScenarioRunner.prototype._process = function(scenario, callback) {
     if (statusCode == 400) {
       var parser = new xml2js.Parser({ explicitRoot: true });
       parser.parseString(response.Body, function(error, result) {
-        var errorCode = result.ErrorResponse.Error.Code;
+        var errorCode = result.Errors.Error.Code;
         if (errorCode === 'Throttling') {
           self.emit('error:throttling');
         }
-------------- next part --------------
HTML����������������������������...
下载 



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