diff --git a/contracts/proposal/dao-proposal-condorcet/src/contract.rs b/contracts/proposal/dao-proposal-condorcet/src/contract.rs index b436b76e4..a29603609 100644 --- a/contracts/proposal/dao-proposal-condorcet/src/contract.rs +++ b/contracts/proposal/dao-proposal-condorcet/src/contract.rs @@ -271,8 +271,10 @@ pub fn reply(deps: DepsMut, _env: Env, msg: Reply) -> Result unimplemented!("pre-propose and hooks not yet supported"), } diff --git a/contracts/proposal/dao-proposal-multiple/src/contract.rs b/contracts/proposal/dao-proposal-multiple/src/contract.rs index 35465ab50..e7d534d30 100644 --- a/contracts/proposal/dao-proposal-multiple/src/contract.rs +++ b/contracts/proposal/dao-proposal-multiple/src/contract.rs @@ -878,7 +878,10 @@ pub fn reply(deps: DepsMut, _env: Env, msg: Reply) -> Result Err(ContractError::NoSuchProposal { id: proposal_id }), })?; - Ok(Response::new().add_attribute("proposal execution failed", proposal_id.to_string())) + + Ok(Response::new() + .add_attribute("proposal execution failed", proposal_id.to_string()) + .add_attribute("error", msg.result.into_result().err().unwrap_or_default())) } TaggedReplyId::FailedProposalHook(idx) => { let addr = PROPOSAL_HOOKS.remove_hook_by_index(deps.storage, idx)?; diff --git a/contracts/proposal/dao-proposal-single/src/contract.rs b/contracts/proposal/dao-proposal-single/src/contract.rs index 5f30030f5..dc69e8104 100644 --- a/contracts/proposal/dao-proposal-single/src/contract.rs +++ b/contracts/proposal/dao-proposal-single/src/contract.rs @@ -957,7 +957,9 @@ pub fn reply(deps: DepsMut, _env: Env, msg: Reply) -> Result Err(ContractError::NoSuchProposal { id: proposal_id }), })?; - Ok(Response::new().add_attribute("proposal_execution_failed", proposal_id.to_string())) + Ok(Response::new() + .add_attribute("proposal_execution_failed", proposal_id.to_string()) + .add_attribute("error", msg.result.into_result().err().unwrap_or_default())) } TaggedReplyId::FailedProposalHook(idx) => { let addr = PROPOSAL_HOOKS.remove_hook_by_index(deps.storage, idx)?;