summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2022-11-25 14:22:23 +0100
committerGitHub <noreply@github.com>2022-11-25 14:22:23 +0100
commit3f79c9b6e5cb5ab27bd5b67dfa13ca5c03218fdb (patch)
tree52ca516611711b2c5422f9b19a6c67679f003028 /cli
parent433f38084bba9f18bdb5de22422cbbd5b0c01ff7 (diff)
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()`.
Diffstat (limited to 'cli')
-rw-r--r--cli/js/40_testing.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/js/40_testing.js b/cli/js/40_testing.js
index 864d50104..4dd24a286 100644
--- a/cli/js/40_testing.js
+++ b/cli/js/40_testing.js
@@ -314,7 +314,7 @@
case "httpConn":
return "Close the inbound HTTP connection by calling `httpConn.close()`.";
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":
return "Close the TCP connection by calling `tcpConn.close()`.";
case "unixStream":
@@ -344,9 +344,9 @@
case "childStdin":
return "Close the child process stdin by calling `proc.stdin.close()`.";
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":
- 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":
return "Close the child process by calling `proc.kill()` or `proc.close()`.";
case "signal":