From 2799b0b7b4bd7a0f1a8390cb7960d9fdf2bb6d5e Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 18 Mar 2022 20:53:31 +0530 Subject: chore(ops): include argument position in serde_v8 errors (#14027) --- ops/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ops') diff --git a/ops/lib.rs b/ops/lib.rs index 608219a1c..49057507d 100644 --- a/ops/lib.rs +++ b/ops/lib.rs @@ -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); } }; -- cgit v1.2.3