You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
that tries to unmount a drive. It throws up the prompt as expected and then prints the following:
sudo complete
err
Error: User did not grant permission.
at /opt/nu-links/cli-node_modules/node_modules/sudo-prompt/index.js:111:23
at ChildProcess.exithandler (child_process.js:282:5)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
stdout
stderr
umount: /home/darthvader/nu/skainswo: target is busy.
which doesn't make any sense since permission was in fact granted. It's just that the command returned a non-zero exit code.
The text was updated successfully, but these errors were encountered:
Thanks @samuela , this is only on Linux and should be fixed.
It's tricky to distinguish between sudo's exit code and that of the command. sudo also translates its error messages depending on the locale (we used to inspect stderr for sudo errors until we found they can be translated).
I have a bit of code:
that tries to unmount a drive. It throws up the prompt as expected and then prints the following:
which doesn't make any sense since permission was in fact granted. It's just that the command returned a non-zero exit code.
The text was updated successfully, but these errors were encountered: