From 9e92dd29f78ac071875790528155d433871a2a36 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Thu, 5 Apr 2018 17:19:01 -0700 Subject: [PATCH] Remove default project behavior --- server/src/commands/serve.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/server/src/commands/serve.rs b/server/src/commands/serve.rs index 20b591f1..4b477ea1 100644 --- a/server/src/commands/serve.rs +++ b/server/src/commands/serve.rs @@ -32,17 +32,15 @@ pub fn serve(project_path: &PathBuf, verbose: bool, port: Option) { }, ProjectLoadError::FailedToOpen | ProjectLoadError::FailedToRead => { eprintln!("Found project file, but failed to read it!"); - eprintln!( - "Check the permissions of the project file at\n{}", - project_path.display(), - ); + eprintln!("Check the permissions of the project file in folder {}", project_path.display()); process::exit(1); }, _ => { - // Any other error is fine; use the default project. - println!("Found no project file, using default project..."); - Project::default() + eprintln!("Unable to find project file in folder {}", project_path.display()); + eprintln!("Use 'rojo init' to create a new project file."); + + process::exit(1); }, } },