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 224205e commit 8817da1Copy full SHA for 8817da1
src/bin/lightdock-rust.rs
@@ -139,7 +139,7 @@ fn run() {
139
);
140
}
141
_ => {
142
- println!(
+ eprintln!(
143
"Wrong command line. Usage: {} setup_filename swarm_filename steps method",
144
args[0]
145
@@ -177,7 +177,11 @@ fn simulate(
177
.map(|m| m.is_dir())
178
.unwrap_or(false)
179
{
180
- panic!("Output directory does not exist for swarm {:?}", swarm_id);
181
+ "Output directory does not exist for swarm {:?}, creating it",
182
+ swarm_id
183
+ );
184
+ fs::create_dir(&swarm_directory).expect("Error creating directory");
185
186
187
println!("Writing to swarm dir {:?}", swarm_directory);
0 commit comments