Skip to content
Snippets Groups Projects
Unverified Commit 29eb5333 authored by Sebastian Kunert's avatar Sebastian Kunert Committed by GitHub
Browse files

Improve `set_validation_data` error message. (#7359)


The old error message was often confusing, because the real reason for
the error will be printed during inherent execution.

---------

Co-authored-by: default avatarcmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
parent 0b8d7441
No related merge requests found
Pipeline #513493 waiting for manual action with stages
in 31 minutes and 55 seconds
......@@ -309,8 +309,12 @@ pub mod pallet {
<UpgradeRestrictionSignal<T>>::kill();
let relay_upgrade_go_ahead = <UpgradeGoAhead<T>>::take();
let vfp = <ValidationData<T>>::get()
.expect("set_validation_data inherent needs to be present in every block!");
let vfp = <ValidationData<T>>::get().expect(
r"Missing required set_validation_data inherent. This inherent must be
present in every block. This error typically occurs when the set_validation_data
execution failed and was rejected by the block builder. Check earlier log entries
for the specific cause of the failure.",
);
LastRelayChainBlockNumber::<T>::put(vfp.relay_parent_number);
......
title: Improve `set_validation_data` error message.
doc:
- audience: Runtime Dev
description: Adds a more elaborate error message to the error that appears when `set_validation_data` is missing in a parachain block.
crates:
- name: cumulus-pallet-parachain-system
bump: patch
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment