From 905efe3a48e5ac08a619da95b3d5f845e7e20160 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 31 Aug 2021 16:52:12 +0900 Subject: Improve build error when a new grammar was added --- helix-syntax/build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'helix-syntax') diff --git a/helix-syntax/build.rs b/helix-syntax/build.rs index 473646fd..28f85e74 100644 --- a/helix-syntax/build.rs +++ b/helix-syntax/build.rs @@ -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); } -- cgit v1.2.3-70-g09d2