Skip to content

Commit f3b2ccb

Browse files
committed
fix: add better error messages for wasip1 flags
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
1 parent 69bcc22 commit f3b2ccb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/cmd_build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub fn build_module(
6666
];
6767

6868
let output = if only_wasip1 {
69-
unimplemented!();
69+
unimplemented!("Building wasip1 Go apps isn't supported quite yet.");
7070
// TODO: for when/if we decide to allow users to build wasm modules without componentizing them
7171
#[allow(unreachable_code)]
7272
Command::new(&go)

src/cmd_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub fn build_test_module(
7474
.env("GOARCH", "wasm")
7575
.output()?
7676
} else {
77-
unimplemented!();
77+
unimplemented!("Please use the --wasip1 flag when building unit tests");
7878

7979
// TODO: for when we figure out how wasip2 tests are to be run
8080
#[allow(unreachable_code)]

0 commit comments

Comments
 (0)