feat: add custom erorr

This commit is contained in:
2020-08-02 01:26:29 +08:00
parent 67b8311400
commit aad710138f
6 changed files with 25 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ pub fn get_git_hash() -> Option<String> {
warn!("Error in get utf8 git rev-parse HEAD: {}", e);
None
},
Ok(stdout) => Some(stdout),
Ok(stdout) => Some(stdout.trim().into()),
}
}
}