Ha, oops! Add bad_epoch code, derp 1
This commit is contained in:
parent
a658a64482
commit
1e14fe878f
3 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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}).
|
||||
|
||||
|
|
|
@ -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'.
|
||||
|
|
Loading…
Reference in a new issue