Use "error" instead of "warning" for self-update message (#13229)

Closes https://github.com/astral-sh/uv/issues/13221
This commit is contained in:
Zanie Blue 2025-04-30 12:23:30 -05:00 committed by GitHub
parent a9ab39ad6f
commit d8e472cfa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ pub(crate) async fn self_update(
"\n",
"If you installed uv with pip, brew, or another package manager, update uv with `pip install --upgrade`, `brew upgrade`, or similar."
),
"warning".yellow().bold(),
"error".red().bold(),
":".bold()
)
)?;
@ -62,7 +62,7 @@ pub(crate) async fn self_update(
"\n",
"The current executable is at `{}` but the standalone installer was used to install uv to `{}`. Are multiple copies of uv installed?"
),
"warning".yellow().bold(),
"error".red().bold(),
":".bold(),
current_exe.simplified_display().bold().cyan(),
receipt_prefix.simplified_display().bold().cyan()