Use {error, bad_checksum} directly

We previously copied {error, bad_csum} as it was used in the main
FLU code.  The protobufs stuff expects the full atom bad_checksum
though.
This commit is contained in:
Mark Allen 2015-10-08 15:43:54 -05:00
parent 679046600f
commit 303aad97e9

View file

@ -307,7 +307,7 @@ handle_call({write, Offset, ClientMeta, Data}, _From,
{error, {bad_csum, Bad}} ->
lager:error("Bad checksum on write; client sent ~p, we computed ~p",
[ClientCsum, Bad]),
{{error, bad_csum}, Err + 1, U};
{{error, bad_checksum}, Err + 1, U};
TaggedCsum ->
case handle_write(FHd, FHc, F, TaggedCsum, Offset, Data, U) of
{ok, NewU1} ->