return correct exit code
This commit is contained in:
parent
95d3c06b31
commit
258ccc09b0
1
examples/fib/main.rs
Normal file
1
examples/fib/main.rs
Normal file
@ -0,0 +1 @@
|
|||||||
|
fn main() {}
|
12
examples/fib/specification.json
Normal file
12
examples/fib/specification.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"entrypoints": {
|
||||||
|
"main1": {
|
||||||
|
"args": [
|
||||||
|
"BinaryName"
|
||||||
|
],
|
||||||
|
"environment": [
|
||||||
|
"Stdout"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -98,7 +98,7 @@ fn main() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
match run(&args) {
|
match run(&args) {
|
||||||
Ok(_) => exitcode::OK,
|
Ok(code) => code,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!("error: {}", e);
|
error!("error: {}", e);
|
||||||
-1
|
-1
|
||||||
|
Loading…
Reference in New Issue
Block a user