Fix error display in tx simulate.

This commit is contained in:
KtorZ
2023-02-15 09:39:34 +01:00
parent 01c392836e
commit 014c7a3d73
2 changed files with 33 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ pub enum Error {
FlatDecode(#[from] flat_rs::de::Error),
#[error("{0}")]
FragmentDecode(#[from] pallas_primitives::Error),
#[error("{}\n\n{:#?}\n\n{}", .0, .1, .2.join("\n"))]
#[error("{}", .0)]
Machine(machine::Error, ExBudget, Vec<String>),
#[error("Native script can't be executed in phase-two")]
NativeScriptPhaseTwo,