Skip to content

Commit 3344816

Browse files
authored
Add details to error message in activate_global_python_argcomplete.py
1 parent ab03e8a commit 3344816

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

argcomplete/scripts/activate_global_python_argcomplete.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ def install_to_destination(dest):
7979
try:
8080
os.makedirs(destdir, exist_ok=True)
8181
except Exception as e:
82-
parser.error(f"path {destdir} does not exist and could not be created: {e}")
82+
parser.error(
83+
f"path {destdir} does not exist and could not be created: {e}. Please run this command using sudo, or see --help for more options."
84+
)
8385
try:
8486
print(f"Installing {activator} to {dest}...", file=sys.stderr)
8587
shutil.copy(activator, dest)

0 commit comments

Comments
 (0)