Suggest imag-init if no config is found

This commit is contained in:
Matthias Beyer 2018-04-18 14:37:25 +02:00
parent bed49b6ece
commit 808689cc05

View file

@ -79,8 +79,9 @@ impl<'a> Runtime<'a> {
Err(e) => if !is_match!(e.kind(), &RuntimeErrorKind::ConfigNoConfigFileFound) { Err(e) => if !is_match!(e.kind(), &RuntimeErrorKind::ConfigNoConfigFileFound) {
return Err(e).chain_err(|| RuntimeErrorKind::Instantiate); return Err(e).chain_err(|| RuntimeErrorKind::Instantiate);
} else { } else {
println!("No config file found."); eprintln!("No config file found.");
println!("Continuing without configuration file"); eprintln!("Maybe try to use 'imag-init' to initialize imag?");
eprintln!("Continuing without configuration file");
None None
}, },