YUKI Hiroshi
null+****@clear*****
Thu Dec 26 17:59:14 JST 2013
YUKI Hiroshi 2013-12-26 17:59:14 +0900 (Thu, 26 Dec 2013) New Revision: 6baf86f164a853d662cfed18865eed5094d55298 https://github.com/droonga/fluent-plugin-droonga/commit/6baf86f164a853d662cfed18865eed5094d55298 Message: Return 404 as the status code for UnknownColumn error of add command Modified files: lib/droonga/plugin/handler/add.rb test/command/suite/add/error/unknown-column.expected Modified: lib/droonga/plugin/handler/add.rb (+1 -1) =================================================================== --- lib/droonga/plugin/handler/add.rb 2013-12-26 17:54:52 +0900 (b0eaa16) +++ lib/droonga/plugin/handler/add.rb 2013-12-26 17:59:14 +0900 (d48bd16) @@ -50,7 +50,7 @@ module Droonga end end - class UnknownColumn < BadRequest + class UnknownColumn < NotFound def initialize(column, table, request) super("The column #{column.inspect} does not exist in the table #{table.inspect}.", request) Modified: test/command/suite/add/error/unknown-column.expected (+1 -1) =================================================================== --- test/command/suite/add/error/unknown-column.expected 2013-12-26 17:54:52 +0900 (a3579c3) +++ test/command/suite/add/error/unknown-column.expected 2013-12-26 17:59:14 +0900 (4769c16) @@ -3,7 +3,7 @@ 0, { "inReplyTo": null, - "statusCode": 400, + "statusCode": 404, "type": "add.result", "body": { "name": "UnknownColumn", -------------- next part -------------- HTML����������������������������...Download