Skip to content

Commit c392062

Browse files
simongdaviesCopilot
andcommitted
fix: address PR review comments
- Fix napi_create_string_utf8 length parameter cast (isize usize) - Fix formatted error string using concat!() to avoid embedded whitespace Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 6dd5d86 commit c392062

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/hyperlight-js/src/sandbox/host_fn.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,11 @@ impl HostModule {
202202
// data is not supported — reject if blobs are present.
203203
if !blobs.is_empty() {
204204
return Err(crate::HyperlightError::Error(format!(
205-
"Function '{}' received {} binary argument(s) but was registered \
206-
with `register` (typed JSON-only). Use `register_js` for functions \
207-
that accept Uint8Array/Buffer arguments.",
205+
concat!(
206+
"Function '{}' received {} binary argument(s) but was registered ",
207+
"with `register` (typed JSON-only). Use `register_js` for functions ",
208+
"that accept Uint8Array/Buffer arguments.",
209+
),
208210
name,
209211
blobs.len()
210212
)));

0 commit comments

Comments
 (0)