From 9e4b8c94b4672aa6e0bd01b38f45e90009449e80 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Thu, 11 Apr 2024 13:27:03 +0200 Subject: [PATCH] build: no bindings: make error more explicit The panic that arises when there are no pre-build bindings available is not that explicit and may confuse some users into thinking there's something wrong with GDAL. Signed-off-by: Frank Villaro-Dixon --- gdal-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdal-sys/build.rs b/gdal-sys/build.rs index 0fccd63b..96152d8d 100644 --- a/gdal-sys/build.rs +++ b/gdal-sys/build.rs @@ -247,7 +247,7 @@ fn main() { version.major, version.minor )); if !binding_path.exists() { - panic!("No pre-built bindings available for GDAL version {}.{}. Use `--features bindgen` to generate your own bindings.", version.major, version.minor); + panic!("No pre-built bindings available for GDAL version {}.{}. Use `--features bindgen` when adding this crate to generate your own bindings.", version.major, version.minor); } std::fs::copy(&binding_path, &out_path)