Skip to content

Commit 2491cdf

Browse files
committed
Exit with status code 1 on error.
1 parent 6a4825e commit 2491cdf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cli/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ fn handle_response<Rs: ::prost::Message>(response: Result<Rs, LdkNodeServerError
137137
},
138138
Err(e) => {
139139
eprintln!("Error executing command: {:?}", e);
140+
std::process::exit(1); // Exit with status code 1 on error.
140141
},
141142
};
142143
}

0 commit comments

Comments
 (0)