Print extrinsic failed error always, not just on import (#4747)

* Print extrinsic failed error always, not just on import

Before we printed the error of a transaction only when importing a
block, this pr changes it to print the error also at building the block.

* Increment `impl_version`
This commit is contained in:
Bastian Köcher
2020-01-28 19:33:23 +01:00
committed by GitHub
parent e58dc6a293
commit c37e9817ef
4 changed files with 12 additions and 4 deletions
+4 -1
View File
@@ -852,7 +852,10 @@ impl<T: Trait> Module<T> {
Self::deposit_event(
match r {
Ok(()) => Event::ExtrinsicSuccess(info),
Err(err) => Event::ExtrinsicFailed(err.clone(), info),
Err(err) => {
sp_runtime::print(err);
Event::ExtrinsicFailed(err.clone(), info)
},
}
);