Skip to content

Commit

Permalink
Remove unnecessary code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Nov 18, 2018
1 parent 18e4e90 commit e72aa79
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,6 @@ impl ApplicationBuilder {
if setting_file.exists() {
match settings.merge(config::File::with_name("Settings.toml")) {
Err(err) => {
if let config::ConfigError::Foreign(err) = &err {
use std::io::{Error as IoErr, ErrorKind};

if let Some(err) = err.downcast_ref::<IoErr>() {
if let ErrorKind::NotFound = err.kind() {
println!("Error: Torchbear needs an app to run. Change to the directory containing your application and run torchbear again.");
std::process::exit(1);
};
};
};

println!("Error opening Settings.toml: {}", err);
std::process::exit(1);
},
Expand Down

0 comments on commit e72aa79

Please sign in to comment.