Merge pull request #1417 from matthiasbeyer/libimagrt/suggest-imag-init

Suggest imag-init if no config is found
This commit is contained in:
Matthias Beyer 2018-04-20 09:24:44 +02:00 committed by GitHub
commit d08a5ab536
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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