diff --git a/smart_contract/executor/src/default.rs b/smart_contract/executor/src/default.rs index 35a681313ab..56a8d5f3a41 100644 --- a/smart_contract/executor/src/default.rs +++ b/smart_contract/executor/src/default.rs @@ -1142,7 +1142,12 @@ pub mod role { crate::data_model::query::builder::SingleQueryError::ExpectedOneGotNone, ) => { // assuming that only a "not found" case is possible here - deny!($executor, "Role not found") + $executor.deny($crate::data_model::ValidationFail::QueryFailed( + $crate::data_model::query::error::QueryExecutionFail::Find( + $crate::data_model::query::error::FindError::Role(role_id.clone()), + ), + )); + return; } Err(_) => { unreachable!();