mirror of
https://github.com/hinto-janai/gupax.git
synced 2025-01-09 19:59:24 +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";
|
const MSG_UPGRADE: &str = "Upgrading packages";
|
||||||
pub const MSG_SUCCESS: &str = "Update successful";
|
pub const MSG_SUCCESS: &str = "Update successful";
|
||||||
pub const MSG_FAILED: &str = "Update failed";
|
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 INIT: &str = "------------------- Init -------------------";
|
||||||
const METADATA: &str = "----------------- Metadata -----------------";
|
const METADATA: &str = "----------------- Metadata -----------------";
|
||||||
|
@ -421,7 +422,7 @@ impl Update {
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
info!("Update ... FAIL: {}", 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;
|
*lock2!(update,updating) = false;
|
||||||
|
|
Loading…
Reference in a new issue