diff --git a/src-tauri/src/app/webview.rs b/src-tauri/src/app/webview.rs index b39a0c1..4eeaef5 100644 --- a/src-tauri/src/app/webview.rs +++ b/src-tauri/src/app/webview.rs @@ -1,10 +1,10 @@ use std::{sync::{Arc, Mutex}, time::Duration}; use serde::Deserialize; -use anyhow::{Result}; +use anyhow::Result; use tracing::{info, debug}; -use tauri::{Manager}; +use tauri::Manager; use tokio::time::sleep; -use crate::{utils::download_file}; +use crate::utils::download_file; pub(crate) async fn download_client(url: &str, on_progress: F, window: &Arc>) -> Result> where F : Fn(u64, u64){ let app_handle = window.lock().unwrap().app_handle(); diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 69703a0..fcc1be2 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -9,7 +9,7 @@ use once_cell::sync::Lazy; use anyhow::Result; use directories::ProjectDirs; use reqwest::Client; -use tracing::{debug}; +use tracing::debug; use tracing_subscriber::layer::SubscriberExt; pub mod app; diff --git a/src-tauri/src/minecraft/java/runtime.rs b/src-tauri/src/minecraft/java/runtime.rs index 031533b..597207c 100644 --- a/src-tauri/src/minecraft/java/runtime.rs +++ b/src-tauri/src/minecraft/java/runtime.rs @@ -52,7 +52,7 @@ impl JavaRuntime { debug!("Process exited with code: {}", code); if code != 0 && code != -1073740791 { // -1073740791 = happens when the process is killed forcefully, we don't want to bail in this case - bail!("Process exited with non-zero code: {}", code); + bail!("Process exited with non-zero exit code: {}.", code); } break; }, diff --git a/src/lib/main/MainScreen.svelte b/src/lib/main/MainScreen.svelte index daa88f5..91afec6 100644 --- a/src/lib/main/MainScreen.svelte +++ b/src/lib/main/MainScreen.svelte @@ -191,9 +191,12 @@ }); listen("client-error", (e) => { - alert(e.payload); + const message = e.payload; + + console.error(message); clientLogShown = true; - console.error(e.payload); + + alert(message); }); function updateModStates() {