Improve build error when a new grammar was added

This commit is contained in:
Blaž Hrastnik 2021-08-31 16:52:12 +09:00
parent 5a558e0d8e
commit 905efe3a48

View file

@ -158,10 +158,9 @@ fn build_dir(dir: &str, language: &str) {
.is_none()
{
eprintln!(
"The directory {} is empty, did you use 'git clone --recursive'?",
"The directory {} is empty, you probably need to use 'git submodule update --init --recursive'?",
dir
);
eprintln!("You can fix in using 'git submodule init && git submodule update --recursive'.");
std::process::exit(1);
}