mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-18 15:31:25 +00:00
web-sys: Provide more info in logs when type conversion fails
This commit is contained in:
@ -812,7 +812,12 @@ impl<'src> WebidlParse<'src, &'src str> for weedle::interface::ConstMember<'src>
|
||||
|
||||
let ty = match idl_type.to_syn_type(TypePosition::Return) {
|
||||
None => {
|
||||
warn!("Can not convert const type to syn type: {:?}", idl_type);
|
||||
warn!(
|
||||
"Cannot convert const type to syn type: {:?} in {:?} on {:?}",
|
||||
idl_type,
|
||||
self,
|
||||
self_name
|
||||
);
|
||||
return Ok(());
|
||||
},
|
||||
Some(ty) => ty,
|
||||
|
Reference in New Issue
Block a user