mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +00:00
nixos-rebuild-ng: only show the error message if the user forget to use --ask-sudo-password flag
This commit is contained in:
parent
69d9c3529d
commit
b928ad0093
@ -144,7 +144,7 @@ def run_wrapper(
|
||||
|
||||
return r
|
||||
except subprocess.CalledProcessError:
|
||||
if sudo and remote:
|
||||
if sudo and remote and remote.sudo_password is None:
|
||||
logger.error(
|
||||
"while running command with remote sudo, did you forget to use "
|
||||
+ "--ask-sudo-password?"
|
||||
|
Loading…
Reference in New Issue
Block a user