Merge pull request #6 from ralphtheninja/master

print out data2 for Event::ERROR_NETWORK as well
This commit is contained in:
Friedel Ziegelmayer
2019-04-28 00:55:44 +02:00
committed by GitHub

View File

@@ -36,7 +36,7 @@ fn cb(_ctx: *mut dc_context_t, event: Event, data1: u64, data2: u64) -> u64 {
}
}
}
Event::INFO | Event::WARNING | Event::ERROR => {
Event::INFO | Event::WARNING | Event::ERROR | Event::ERROR_NETWORK => {
println!(
" {}",
unsafe { CStr::from_ptr(data2 as *const _) }