basho/riak_kv — pull request #259 by fdumontmd (2011-12-11 11:14:02+00:00)
Title: Fix 500 HTTP code on pre commit fail

riak_kv_wm_object:handle_common_error case for precommit_fail with message fails to unify with argument because Reason is already bound. The result is that a { precommit_fail, "message" } argument results in a 500 Server error instead of 403.

Simply renaming the second Reason variable to Message fixes the problem.