Skip to content

Commit 70d7471

Browse files
authored
Merge pull request #918 from ehuss/set-err-class
Use correct class for credentials_cb error
2 parents ee558c1 + 50dcbe0 commit 70d7471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/remote_callbacks.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ extern "C" fn credentials_cb(
290290

291291
callback(url, username_from_url, cred_type).map_err(|e| {
292292
let s = CString::new(e.to_string()).unwrap();
293-
raw::git_error_set_str(e.raw_code() as c_int, s.as_ptr());
293+
raw::git_error_set_str(e.class() as c_int, s.as_ptr());
294294
e.raw_code() as c_int
295295
})
296296
});

0 commit comments

Comments
 (0)