diff --git a/src/machi.proto b/src/machi.proto index 8a4bf15..80a39e7 100644 --- a/src/machi.proto +++ b/src/machi.proto @@ -45,6 +45,7 @@ enum Mpb_GeneralStatusCode { WRITTEN = 6; NO_SUCH_FILE = 7; PARTIAL_READ = 8; + BAD_EPOCH = 9; BAD_JOSS = 255; // Only for testing by the Taipan } diff --git a/src/machi_pb_high_client.erl b/src/machi_pb_high_client.erl index 5e34794..21f6cd0 100644 --- a/src/machi_pb_high_client.erl +++ b/src/machi_pb_high_client.erl @@ -374,6 +374,8 @@ convert_general_status_code('NO_SUCH_FILE') -> {error, no_such_file}; convert_general_status_code('PARTIAL_READ') -> {error, partial_read}; +convert_general_status_code('BAD_EPOCH') -> + {error, bad_epoch}; convert_general_status_code('BAD_JOSS') -> throw({error, bad_joss_taipan_fixme}). diff --git a/src/machi_pb_translate.erl b/src/machi_pb_translate.erl index ce5fd40..8e4ae21 100644 --- a/src/machi_pb_translate.erl +++ b/src/machi_pb_translate.erl @@ -825,6 +825,8 @@ conv_from_status({error, no_such_file}) -> 'NO_SUCH_FILE'; conv_from_status({error, partial_read}) -> 'PARTIAL_READ'; +conv_from_status({error, bad_epoch}) -> + 'BAD_EPOCH'; conv_from_status(_OOPS) -> io:format(user, "HEY, ~s:~w got ~w\n", [?MODULE, ?LINE, _OOPS]), 'BAD_JOSS'.