aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 33461e4d..c852c33b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -258,7 +258,11 @@ fn main() -> io::Result<()> {
match update::self_update() {
Ok(_) => return Ok(()),
Err(e) => {
- eprintln!("update failed: {e}");
+ if e.starts_with("self-update is disabled") {
+ eprintln!("{e}");
+ } else {
+ eprintln!("update failed: {e}");
+ }
std::process::exit(1);
}
}