mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-11 07:36:38 -07:00
Handle sso token exchange errors in zerotier client
This commit is contained in:
parent
aee9521c91
commit
4151749dc9
2 changed files with 19 additions and 4 deletions
|
@ -275,7 +275,7 @@ pub extern "C" fn zeroidc_token_exchange(idc: *mut ZeroIDC, code: *const c_char
|
|||
|
||||
},
|
||||
Err(e) => {
|
||||
let errstr = format!("{{\"message\":\"{}\"\"}}", e).to_string();
|
||||
let errstr = format!("{{\"errorMessage\":\"{}\"\"}}", e).to_string();
|
||||
let ret = CString::new(errstr).unwrap();
|
||||
return ret.into_raw();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue