Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
For now, spit errors to stderr rather than silencing them.
Browse files Browse the repository at this point in the history
  • Loading branch information
norman authored and mascarenhas committed Sep 10, 2010
1 parent 2a309ce commit 2975f95
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/wsapi/mock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ local function build_get(path, params, headers)
env = req,
input = make_io_object(),
output = make_io_object(),
error = make_io_object()
error = io.stderr
}
end

Expand All @@ -110,11 +110,10 @@ local function build_post(path, params, headers)
req.REQUEST_URI = "http://" .. req.HTTP_HOST .. req.PATH_INFO
req.CONTENT_TYPE = "x-www-form-urlencoded"
req.CONTENT_LENGTH = #body
local input = make_io_object(body)

return {
env = req,
input = input,
input = make_io_object(body),
output = make_io_object(),
error = make_io_object()
}
Expand Down

0 comments on commit 2975f95

Please sign in to comment.