Skip to content

Commit

Permalink
build: no bindings: make error more explicit
Browse files Browse the repository at this point in the history
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 <frank@villaro-dixon.eu>
  • Loading branch information
Frankkkkk committed Apr 11, 2024
1 parent 88d3124 commit 9e4b8c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdal-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e4b8c9

Please sign in to comment.