Skip to content

Commit

Permalink
restore illegal argument on batch failure
Browse files Browse the repository at this point in the history
  • Loading branch information
anorth committed Jul 30, 2023
1 parent 909ef1b commit 662c463
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actors/verifreg/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,9 @@ impl Actor {
let batch_info = batch_gen.gen();
if params.all_or_nothing && !batch_info.all_ok() {
return Err(ActorError::checked(
batch_info.fail_codes[0].code,
// Returning the first actual error code from the batch might be better, but
// would change behaviour from the original implementation.
ExitCode::USR_ILLEGAL_ARGUMENT,
format!("claim failed with all-or-nothing: {}", batch_info),
None,
));
Expand Down

0 comments on commit 662c463

Please sign in to comment.