Remove Move Loader's use of GenericError (#8289)

automerge
This commit is contained in:
Jack May
2020-02-14 14:49:21 -08:00
committed by GitHub
parent 965361ff69
commit 644a7f9a44
6 changed files with 38 additions and 12 deletions

View File

@@ -42,6 +42,6 @@ pub fn map_err_vm_status(status: VMStatus) -> InstructionError {
// The only defined StatusCode that fails is StatusCode::UNKNOWN_ERROR
match <StatusCode as Into<u64>>::into(status.major_status).try_into() {
Ok(u) => InstructionError::CustomError(u),
Err(_) => InstructionError::GenericError,
Err(_) => InstructionError::InvalidError,
}
}