Skip to content

Commit 30b8aa5

Browse files
committed
gh-144881: Send permission error message to stderr
1 parent fbec1c8 commit 30b8aa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/asyncio/tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ def exit_with_permission_help_text():
231231
print(
232232
"Error: The specified process cannot be attached to due to insufficient permissions.\n"
233233
"See the Python documentation for details on required privileges and troubleshooting:\n"
234-
"https://docs.python.org/3.14/howto/remote_debugging.html#permission-requirements\n"
234+
"https://docs.python.org/3.14/howto/remote_debugging.html#permission-requirements\n",
235+
file=sys.stderr,
235236
)
236237
sys.exit(1)
237238

0 commit comments

Comments
 (0)