From d0df49a0cdbfa10abdb50fbc1860870b6052683c Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Fri, 21 Apr 2023 11:18:22 -0400 Subject: [PATCH] update: add help message --- src/update.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/update.rs b/src/update.rs index dd95075..9c38bf1 100644 --- a/src/update.rs +++ b/src/update.rs @@ -201,6 +201,7 @@ const MSG_EXTRACT: &str = "Extracting packages"; const MSG_UPGRADE: &str = "Upgrading packages"; pub const MSG_SUCCESS: &str = "Update successful"; pub const MSG_FAILED: &str = "Update failed"; +pub const MSG_FAILED_HELP: &str = "Consider manually replacing your executable from: https://gupax.io/downloads"; const INIT: &str = "------------------- Init -------------------"; const METADATA: &str = "----------------- Metadata -----------------"; @@ -421,7 +422,7 @@ impl Update { } Err(e) => { info!("Update ... FAIL: {}", e); - *lock2!(update,msg) = format!("{} | {}", MSG_FAILED, e); + *lock2!(update,msg) = format!("{} | {}\n{}", MSG_FAILED, e, MSG_FAILED_HELP); }, }; *lock2!(update,updating) = false;