We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0137f78 commit 224205eCopy full SHA for 224205e
src/bin/lightdock-rust.rs
@@ -115,7 +115,17 @@ fn run() {
115
};
116
117
// Load setup
118
- let setup = read_setup_from_file(setup_filename).unwrap();
+ let setup = match read_setup_from_file(setup_filename) {
119
+ Ok(setup) => setup,
120
+ Err(e) => {
121
+ eprintln!(
122
+ "Error reading setup file [{:?}]: {:?}",
123
+ setup_filename,
124
+ e.to_string()
125
+ );
126
+ return;
127
+ }
128
+ };
129
130
// Simulation path
131
let simulation_path = Path::new(setup_filename).parent().unwrap();
0 commit comments