Skip to content

Commit 1495f61

Browse files
authored
Add a more specific suggestion when failing to select a default world. (#406)
thank you
1 parent a74f597 commit 1495f61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bindings.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ impl<'a> BindingsGenerator<'a> {
362362
)
363363
}
364364
None => format!(
365-
"failed to select the default world to use for local target `{path}`",
365+
"failed to select the default world to use for local target `{path}`. \
366+
Please ensure that a world is specified in Cargo.toml under [package.metadata.component.target].",
366367
path = path.display()
367368
),
368369
})?;

0 commit comments

Comments
 (0)