Yield an error if no polkit authentication agent was found
`pkexec` prints an error to `stderr` if no authentication agent was found, and if we pass the `--disable-internal-agent` option. Currently, this module doesn't handle this edge case by yielding a meaningful error, and therefore causes client applications to usually miss it. Fixes: https://github.com/jorangreef/sudo-prompt/issues/28 Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
201dc8cf4f
commit
1acf3d4a70
1 changed files with 7 additions and 2 deletions
7
index.js
7
index.js
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue