Skip to content

Commit

Permalink
One error more forwarded to the front-end.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoehermann committed Dec 4, 2024
1 parent 68a4501 commit af7aa74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/rust/src/bridge_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ unsafe fn send_cmd(
}
Err(err) => {
println!("rust: command_tx.send {err}");
//crate::core::purple_error(account, 0 /* PURPLE_CONNECTION_ERROR_NETWORK_ERROR */ , format!("Error sending command to the rust runtime: {err:?}"));
// TODO: can we call purple_error directly as this is executed in the main glib thread?
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/rust/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async fn run<C: presage::store::Store + 'static>(
crate::bridge::append_message(&message);
}
Err(err) => {
purple_error(account, 16, format!("Error linking device: {err:?}"));
crate::core::purple_error(account, 2 /* PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED */, format!("Error linking device: {err:?}"));
}
}
})
Expand Down

0 comments on commit af7aa74

Please sign in to comment.