From f3b2ccb254c606a62050983fa87a3f807f4c184e Mon Sep 17 00:00:00 2001 From: Andrew Steurer <94206073+asteurer@users.noreply.github.com> Date: Thu, 19 Feb 2026 00:06:52 -0600 Subject: [PATCH] fix: add better error messages for wasip1 flags Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com> --- src/cmd_build.rs | 2 +- src/cmd_test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd_build.rs b/src/cmd_build.rs index 5b0d275..c7dd212 100644 --- a/src/cmd_build.rs +++ b/src/cmd_build.rs @@ -66,7 +66,7 @@ pub fn build_module( ]; let output = if only_wasip1 { - unimplemented!(); + unimplemented!("Building wasip1 Go apps isn't supported quite yet."); // TODO: for when/if we decide to allow users to build wasm modules without componentizing them #[allow(unreachable_code)] Command::new(&go) diff --git a/src/cmd_test.rs b/src/cmd_test.rs index 02c88a2..b5a5b99 100644 --- a/src/cmd_test.rs +++ b/src/cmd_test.rs @@ -74,7 +74,7 @@ pub fn build_test_module( .env("GOARCH", "wasm") .output()? } else { - unimplemented!(); + unimplemented!("Please use the --wasip1 flag when building unit tests"); // TODO: for when we figure out how wasip2 tests are to be run #[allow(unreachable_code)]