Skip to content

Commit

Permalink
Merge pull request #259 from fdumontmd/master
Browse files Browse the repository at this point in the history
Fix 500 HTTP code on pre commit fail
  • Loading branch information
justinsheehy committed Dec 12, 2011
2 parents b00b0d4 + 7d19ed5 commit afdeec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/riak_kv_wm_object.erl
Expand Up @@ -966,8 +966,8 @@ handle_common_error(Reason, RD, Ctx) ->
case {error, Reason} of
{error, precommit_fail} ->
{{halt, 403}, send_precommit_error(RD, undefined), Ctx};
{error, {precommit_fail, Reason}} ->
{{halt, 403}, send_precommit_error(RD, Reason), Ctx};
{error, {precommit_fail, Message}} ->
{{halt, 403}, send_precommit_error(RD, Message), Ctx};
{error, too_many_fails} ->
{{halt, 503}, wrq:append_to_response_body("Too Many write failures"
" to satisfy W/DW\n", RD), Ctx};
Expand Down

0 comments on commit afdeec2

Please sign in to comment.