mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-14 22:42:46 +00:00
Update crates/update/src/install.rs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
bd9a4d7b16
commit
003f133f6d
1 file changed
+2
@@ -947,6 +947,8 @@ pub(crate) mod linux {
|
||||
}
|
||||
// pkexec: 126 = the password prompt was dismissed, 127 = not authorized.
|
||||
if matches!(output.status.code(), Some(126 | 127)) {
|
||||
let detail = String::from_utf8_lossy(&output.stderr);
|
||||
log::warn!("flatpak bundle install ended with {:?}: {}", output.status.code(), detail.trim());
|
||||
return Err(CANCELLED.into());
|
||||
}
|
||||
let stderr = String::from_utf8_lossy(&output.stderr);
|
||||
|
||||
Reference in new issue
Block a user