mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 22:59:27 +00:00
update: add help message
This commit is contained in:
parent
c06d851b23
commit
d0df49a0cd
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue