return correct exit code

This commit is contained in:
Jake Hillion 2022-05-20 17:48:39 +01:00
parent 95d3c06b31
commit 258ccc09b0
3 changed files with 14 additions and 1 deletions

1
examples/fib/main.rs Normal file
View File

@ -0,0 +1 @@
fn main() {}

View File

@ -0,0 +1,12 @@
{
"entrypoints": {
"main1": {
"args": [
"BinaryName"
],
"environment": [
"Stdout"
]
}
}
}

View File

@ -98,7 +98,7 @@ fn main() {
};
match run(&args) {
Ok(_) => exitcode::OK,
Ok(code) => code,
Err(e) => {
error!("error: {}", e);
-1