diff options
author | Ian Bull <irbull@gmail.com> | 2024-09-04 00:23:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 09:23:19 +0200 |
commit | cb454351d497a4387775f3c9d64114cb8b32c08d (patch) | |
tree | 252e1dc84de3d3048ae3d98f4713cbdb436c5226 /ext/ffi/call.rs | |
parent | 1ec911f1734b5e7190cc65876c5f03011e592d7e (diff) |
refactor(ext): align error messages (#25310)
Diffstat (limited to 'ext/ffi/call.rs')
-rw-r--r-- | ext/ffi/call.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/ffi/call.rs b/ext/ffi/call.rs index 726f17fad..916597293 100644 --- a/ext/ffi/call.rs +++ b/ext/ffi/call.rs @@ -334,7 +334,9 @@ pub fn op_ffi_call_nonblocking( let symbols = &resource.symbols; *symbols .get(&symbol) - .ok_or_else(|| type_error("Invalid FFI symbol name"))? + .ok_or_else(|| { + type_error(format!("Invalid FFI symbol name: '{symbol}'")) + })? .clone() }; |