Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix 500 error on precommit_fail due to spurious variable binding

  • Loading branch information...
commit 7d19ed58f460397019e0bed18c0ae08bd4fcb68c 1 parent cbcef70
@fdumontmd fdumontmd authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/riak_kv_wm_object.erl
View
4 src/riak_kv_wm_object.erl
@@ -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};
Please sign in to comment.
Something went wrong with that request. Please try again.