Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/wasm-rquickjs/skeleton/src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ where
match e {
Error::Exception => {
let exception = ctx.catch();
panic! ("Exception during awaiting call result: {exception:?}")
panic! ("Exception during awaiting call result for {function_path}: {exception:?}", function_path=function_path.join("."))
}
_ => {
panic ! ("Error during awaiting call result: {e:?}")
Expand Down
11 changes: 4 additions & 7 deletions crates/wasm-rquickjs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,10 @@ impl<'a> ImportedInterface<'a> {

/// Recursively copies a WIT directory to `<output>/wit`.
fn copy_wit_directory(wit: &Utf8Path, output: &Utf8Path) -> anyhow::Result<()> {
let options = CopyOptions {
overwrite: true,
copy_inside: true,
..Default::default()
};

fs_extra::copy_items(&[wit], output, &options).context("Failed to copy WIT directory")?;
fs_extra::dir::create(output, true)
.context("Failed to create and erase output WIT directory")?;
fs_extra::dir::copy(wit, output, &CopyOptions::new().content_only(true))
.context("Failed to copy WIT directory")?;

Ok(())
}
Expand Down
Loading