rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.65k stars 381 forks source link

Use correct class for credentials_cb error #918

Closed ehuss closed 1 year ago

ehuss commented 1 year ago

The first parameter of git_error_set_str is supposed to be an error class, not the raw error code. The main consequence is that the error message should show the class code instead of the error code (which would usually just be GIT_ERROR).