chore: Add more descriptive error message

--- don't change below this line ---
ENG-4063 Took 14 minutes
This commit is contained in:
Diana Carvalho
2025-01-20 16:35:38 +00:00
parent cbf2b4de5a
commit b155b273a0

View File

@@ -48,9 +48,10 @@ impl ProtocolApprovalsManager {
Ok(allowance.is_zero())
}
Err(err) => {
Err(EncodingError::RecoverableError(format!("Call failed with error: {:?}", err)))
}
Err(err) => Err(EncodingError::RecoverableError(format!(
"Allowance call failed with error: {:?}",
err
))),
}
}
}