We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a528ef commit 59ee1a7Copy full SHA for 59ee1a7
build.rs
@@ -1,7 +1,10 @@
1
use git2::{DescribeFormatOptions, DescribeOptions, Repository};
2
3
fn main() {
4
- let Ok(repo) = Repository::open(".") else {
+ let Ok(repo) = Repository::open(".").map_err(|e| {
5
+ println!("cargo::warning={}", e);
6
+ e
7
+ }) else {
8
return;
9
};
10
let Ok(git_describe_result) = repo
@@ -16,6 +19,9 @@ fn main() {
16
19
.always_use_long_format(true)
17
20
.dirty_suffix("-dirty"),
18
21
))
22
+ }).map_err(|e| {
23
24
25
})
26
else {
27
0 commit comments