From 665df5155b62171dc8ee2ef6a8ef652ebcbc6702 Mon Sep 17 00:00:00 2001 From: Darius Clark Date: Tue, 4 Dec 2018 01:41:14 -0500 Subject: [PATCH] Change message when init.lua is not found Closes #126 --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c56c2c3..184cfbb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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); } @@ -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);