-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve admin workstation updater GUI error handling
Increase the time it will wait for tailsconfig to run. Don't say the admin password was wrong on tailsconfig timeout. Instead, look for sudo in the output to determine if an incorrect password was given. Add a new message explaining that tailsconfig took too long, and don't say "Exiting upgrade" when an incorrect admin password was given, as the updater is not exiting, and in fact we're telling the admin to try again. Make sure the failure reason was cleared on each attempt.
- Loading branch information
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,15 @@ | |
"Contact your SecureDrop administrator " | ||
"or [email protected] immediately.") | ||
tailsconfig_failed_sudo_password = ('Administrator password incorrect. ' | ||
'Exiting upgrade - ' | ||
'click Update Now to try again.') | ||
'Click Update Now to try again.') | ||
tailsconfig_failed_generic_reason = ("Tails workstation configuration failed. " | ||
"Contact your administrator. " | ||
"If you are an administrator, contact " | ||
"[email protected].") | ||
tailsconfig_failed_timeout = ("Tails workstation configuration took too long. " | ||
"Contact your administrator. " | ||
"If you are an administrator, contact " | ||
"[email protected].") | ||
install_update_button = 'Update Now' | ||
install_later_button = 'Update Later' | ||
sudo_password_text = ("Enter the Tails Administrator password you " | ||
|