From 0d7ad765cc01b46777c50e9faadf95f53022d658 Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Fri, 26 Apr 2024 14:27:33 +0200 Subject: [PATCH 1/2] Improve error message for unknown atoms --- lib/wasix/src/runtime/package_loader/load_package_tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wasix/src/runtime/package_loader/load_package_tree.rs b/lib/wasix/src/runtime/package_loader/load_package_tree.rs index 9bcc7598939..7e910c28360 100644 --- a/lib/wasix/src/runtime/package_loader/load_package_tree.rs +++ b/lib/wasix/src/runtime/package_loader/load_package_tree.rs @@ -150,7 +150,7 @@ fn load_binary_command( let atom = atom.with_context(|| { format!( - "The '{command_name}' command uses the '{atom_name}' atom, but it isn't present in the WEBC file" + "The '{command_name}' command uses the '{atom_name}' atom, but it isn't present in the WEBC file (package: {package_id})" ) })?; From 1ae237ff74cc0e3f727715c71db78dc2b98cfda7 Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Fri, 26 Apr 2024 14:31:12 +0200 Subject: [PATCH 2/2] Improve error message Co-authored-by: Syrus Akbary --- lib/wasix/src/runtime/package_loader/load_package_tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wasix/src/runtime/package_loader/load_package_tree.rs b/lib/wasix/src/runtime/package_loader/load_package_tree.rs index 7e910c28360..b35c726437f 100644 --- a/lib/wasix/src/runtime/package_loader/load_package_tree.rs +++ b/lib/wasix/src/runtime/package_loader/load_package_tree.rs @@ -150,7 +150,7 @@ fn load_binary_command( let atom = atom.with_context(|| { format!( - "The '{command_name}' command uses the '{atom_name}' atom, but it isn't present in the WEBC file (package: {package_id})" + "The '{command_name}' command uses the '{atom_name}' atom, but it isn't present in the package {package_id}" ) })?;