From 12f8d017b9bb1c02cfd4d4a221924ad04569f781 Mon Sep 17 00:00:00 2001 From: mcarton Date: Thu, 9 Jul 2015 17:24:45 +0200 Subject: [PATCH] Add systemd's kind of error for the sudo rule A complete error would be: ``` % systemctl daemon-reload ==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon === Authentication is required to reload the systemd state. Authenticating as: martin Password: ``` --- thefuck/rules/sudo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thefuck/rules/sudo.py b/thefuck/rules/sudo.py index 1a87ffec..31687549 100644 --- a/thefuck/rules/sudo.py +++ b/thefuck/rules/sudo.py @@ -13,7 +13,8 @@ patterns = ['permission denied', 'must be root', 'need to be root', 'need root', - 'only root can do that'] + 'only root can do that', + 'authentication is required'] def match(command, settings):