mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Remove default project behavior
This commit is contained in:
parent
203b9e1fb6
commit
9e92dd29f7
1 changed files with 5 additions and 7 deletions
|
|
@ -32,17 +32,15 @@ pub fn serve(project_path: &PathBuf, verbose: bool, port: Option<u64>) {
|
||||||
},
|
},
|
||||||
ProjectLoadError::FailedToOpen | ProjectLoadError::FailedToRead => {
|
ProjectLoadError::FailedToOpen | ProjectLoadError::FailedToRead => {
|
||||||
eprintln!("Found project file, but failed to read it!");
|
eprintln!("Found project file, but failed to read it!");
|
||||||
eprintln!(
|
eprintln!("Check the permissions of the project file in folder {}", project_path.display());
|
||||||
"Check the permissions of the project file at\n{}",
|
|
||||||
project_path.display(),
|
|
||||||
);
|
|
||||||
|
|
||||||
process::exit(1);
|
process::exit(1);
|
||||||
},
|
},
|
||||||
_ => {
|
_ => {
|
||||||
// Any other error is fine; use the default project.
|
eprintln!("Unable to find project file in folder {}", project_path.display());
|
||||||
println!("Found no project file, using default project...");
|
eprintln!("Use 'rojo init' to create a new project file.");
|
||||||
Project::default()
|
|
||||||
|
process::exit(1);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue