chore: print out data2 for Event::ERROR_NETWORK as well

This commit is contained in:
Lars-Magnus Skog
2019-04-28 00:54:11 +02:00
parent 686d95ff07
commit 7183a8995e

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 _) }