Skip to content

Commit

Permalink
Change message when init.lua is not found
Browse files Browse the repository at this point in the history
Closes #126
  • Loading branch information
dariusc93 committed Dec 4, 2018
1 parent 923a581 commit 665df51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl ApplicationBuilder {
let log_path = get_or(&general, "log_path", "log");

if !Path::new(&init_path).exists() {
println!("Error: Torchbear needs an app to run. Change to the directory containing your application and run torchbear again.");
println!("Error: Specified init.lua not found. You may have not completed installing your app");
std::process::exit(1);
}

Expand All @@ -192,7 +192,7 @@ impl ApplicationBuilder {
lua_actor
});

if let Some(web) = config.web_server {
if let Some(web) = config.web_server {
log::debug!("web server section in settings, starting seting up web server");
let host = get_or(&web, "address", "0.0.0.0");
let port = get_or(&web, "port", "3000").parse().unwrap_or(3000);
Expand Down

0 comments on commit 665df51

Please sign in to comment.