From 303aad97e9e1634989088180f862e368d5f8f75f Mon Sep 17 00:00:00 2001 From: Mark Allen Date: Thu, 8 Oct 2015 15:43:54 -0500 Subject: [PATCH] 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. --- src/machi_file_proxy.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machi_file_proxy.erl b/src/machi_file_proxy.erl index 6fb6b35..7f97a48 100644 --- a/src/machi_file_proxy.erl +++ b/src/machi_file_proxy.erl @@ -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} ->