mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
fix(cli/js): improve resource sanitizer messages (#16798)
This commit improves the guidance for how to close a child process stdout / stderr to also include guidance for when using `new Deno.Command()`.
This commit is contained in:
parent
488eb21652
commit
78c287eb87
1 changed files with 3 additions and 3 deletions
|
@ -314,7 +314,7 @@
|
||||||
case "httpConn":
|
case "httpConn":
|
||||||
return "Close the inbound HTTP connection by calling `httpConn.close()`.";
|
return "Close the inbound HTTP connection by calling `httpConn.close()`.";
|
||||||
case "httpStream":
|
case "httpStream":
|
||||||
return "Close the inbound HTTP request by responding with `e.respondWith().` or closing the HTTP connection.";
|
return "Close the inbound HTTP request by responding with `e.respondWith()` or closing the HTTP connection.";
|
||||||
case "tcpStream":
|
case "tcpStream":
|
||||||
return "Close the TCP connection by calling `tcpConn.close()`.";
|
return "Close the TCP connection by calling `tcpConn.close()`.";
|
||||||
case "unixStream":
|
case "unixStream":
|
||||||
|
@ -344,9 +344,9 @@
|
||||||
case "childStdin":
|
case "childStdin":
|
||||||
return "Close the child process stdin by calling `proc.stdin.close()`.";
|
return "Close the child process stdin by calling `proc.stdin.close()`.";
|
||||||
case "childStdout":
|
case "childStdout":
|
||||||
return "Close the child process stdout by calling `proc.stdout.close()`.";
|
return "Close the child process stdout by calling `proc.stdout.close()` or `await child.stdout.cancel()`.";
|
||||||
case "childStderr":
|
case "childStderr":
|
||||||
return "Close the child process stderr by calling `proc.stderr.close()`.";
|
return "Close the child process stderr by calling `proc.stderr.close()` or `await child.stderr.cancel()`.";
|
||||||
case "child":
|
case "child":
|
||||||
return "Close the child process by calling `proc.kill()` or `proc.close()`.";
|
return "Close the child process by calling `proc.kill()` or `proc.close()`.";
|
||||||
case "signal":
|
case "signal":
|
||||||
|
|
Loading…
Reference in a new issue