mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Improve error message when example fails to run
This commit is contained in:
parent
bba5385088
commit
30df69af4f
1 changed files with 7 additions and 4 deletions
|
@ -84,10 +84,13 @@ fn main() -> io::Result<()> {
|
|||
.expect("rustc failed to run");
|
||||
|
||||
// Step 4: Run the compiled app
|
||||
Command::new(cwd.join("app"))
|
||||
.spawn()
|
||||
.expect("./app failed to run");
|
||||
|
||||
Command::new(cwd.join("app")).spawn().unwrap_or_else(|err| {
|
||||
panic!(
|
||||
"{} failed to run: {:?}",
|
||||
cwd.join("app").to_str().unwrap(),
|
||||
err
|
||||
)
|
||||
});
|
||||
Ok(())
|
||||
}
|
||||
None => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue