mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 11:38:01 +00:00
Add solution hint to error message (#13111)
* Add solution hint to error message * make it compile * Update frame/support/procedural/src/pallet/expand/hooks.rs Co-authored-by: Bastian Köcher <git@kchr.de> * Update frame/support/procedural/src/pallet/expand/storage.rs Co-authored-by: Bastian Köcher <git@kchr.de> * Update frame/support/procedural/src/pallet/expand/storage.rs Co-authored-by: Bastian Köcher <git@kchr.de> * Update frame/support/procedural/src/pallet/expand/storage.rs Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -63,7 +63,7 @@ pub fn expand_hooks(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
<T as #frame_system::Config>::PalletInfo
|
||||
as
|
||||
#frame_support::traits::PalletInfo
|
||||
>::name::<Self>().expect("Every active pallet has a name in the runtime; qed");
|
||||
>::name::<Self>().expect("No name found for the pallet! This usually means that the pallet wasn't added to `construct_runtime!`.");
|
||||
#frame_support::log::debug!(
|
||||
target: #frame_support::LOG_TARGET,
|
||||
"🩺 try-state pallet {:?}",
|
||||
|
||||
@@ -535,7 +535,7 @@ pub fn expand_storages(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
<T as #frame_system::Config>::PalletInfo
|
||||
as #frame_support::traits::PalletInfo
|
||||
>::name::<Pallet<#type_use_gen>>()
|
||||
.expect("Every active pallet has a name in the runtime; qed")
|
||||
.expect("No name found for the pallet in the runtime! This usually means that the pallet wasn't added to `construct_runtime!`.")
|
||||
}
|
||||
const STORAGE_PREFIX: &'static str = #counter_prefix_struct_const;
|
||||
}
|
||||
@@ -569,7 +569,7 @@ pub fn expand_storages(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
<T as #frame_system::Config>::PalletInfo
|
||||
as #frame_support::traits::PalletInfo
|
||||
>::name::<Pallet<#type_use_gen>>()
|
||||
.expect("Every active pallet has a name in the runtime; qed")
|
||||
.expect("No name found for the pallet in the runtime! This usually means that the pallet wasn't added to `construct_runtime!`.")
|
||||
}
|
||||
const STORAGE_PREFIX: &'static str = #prefix_struct_const;
|
||||
}
|
||||
@@ -648,7 +648,7 @@ pub fn expand_storages(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
<T as #frame_system::Config>::PalletInfo as
|
||||
#frame_support::traits::PalletInfo
|
||||
>::name::<#pallet_ident<#type_use_gen>>()
|
||||
.expect("Every active pallet has a name in the runtime; qed"),
|
||||
.expect("No name found for the pallet in the runtime! This usually means that the pallet wasn't added to `construct_runtime!`."),
|
||||
entries: {
|
||||
#[allow(unused_mut)]
|
||||
let mut entries = #frame_support::sp_std::vec![];
|
||||
|
||||
Reference in New Issue
Block a user