Provide a full window error if something goes wrong

This commit is contained in:
Sebastian Martinez
2025-06-06 15:22:08 +02:00
parent d68a06c33a
commit 8e683cf7ce
7 changed files with 154 additions and 2 deletions
@@ -48,9 +48,13 @@ pub(crate) fn check_radicle_cli(ctx: tauri::State<AppState>) -> Result<(), Error
#[tauri::command]
pub(crate) fn startup(app: AppHandle) -> Result<Config, Error> {
let profile = radicle::Profile::load()?;
let home = profile.home();
let repositories = profile.storage.repositories()?;
let public_key = profile.public_key;
let cobs_cache = radicle::cob::cache::Store::open(home.cobs().join(COBS_DB_FILE))?;
cobs_cache.check_version()?;
let inbox_db = radicle_types::outbound::sqlite::Sqlite::reader(
profile.node().join(NOTIFICATIONS_DB_FILE),
)?;
+4
View File
@@ -19,6 +19,10 @@ pub enum Error {
#[error("ssh agent not running")]
AgentNotRunning,
/// Generic Cob cache error.
#[error(transparent)]
Cache(#[from] radicle::cob::cache::Error),
/// Embeds error.
#[error("not able to save embed")]
SaveEmbedError,