Skip to content

Commit

Permalink
Merge pull request #918 from ehuss/set-err-class
Browse files Browse the repository at this point in the history
Use correct class for credentials_cb error
  • Loading branch information
ehuss authored Jan 23, 2023
2 parents ee558c1 + 50dcbe0 commit 70d7471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remote_callbacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ extern "C" fn credentials_cb(

callback(url, username_from_url, cred_type).map_err(|e| {
let s = CString::new(e.to_string()).unwrap();
raw::git_error_set_str(e.raw_code() as c_int, s.as_ptr());
raw::git_error_set_str(e.class() as c_int, s.as_ptr());
e.raw_code() as c_int
})
});
Expand Down

0 comments on commit 70d7471

Please sign in to comment.