mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
chore(ops): include argument position in serde_v8 errors (#14027)
This commit is contained in:
parent
9c403f146e
commit
2799b0b7b4
2 changed files with 2 additions and 2 deletions
|
@ -237,7 +237,7 @@ fn codegen_arg(
|
|||
let #ident = match #core::serde_v8::from_v8(scope, #ident) {
|
||||
Ok(v) => v,
|
||||
Err(err) => {
|
||||
let msg = format!("Error parsing args: {}", #core::anyhow::Error::from(err));
|
||||
let msg = format!("Error parsing args at position {}: {}", #idx, #core::anyhow::Error::from(err));
|
||||
return #core::_ops::throw_type_error(scope, msg);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue