mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Provide a full window error if something goes wrong
This commit is contained in:
@@ -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),
|
||||
)?;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user