mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
chore: improve deprecation hint for Deno.isatty() (#22086)
This commit is contained in:
parent
8e67bf829a
commit
fb24b004ba
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ function isatty(rid) {
|
|||
internals.warnOnDeprecatedApi(
|
||||
"Deno.isatty()",
|
||||
new Error().stack,
|
||||
"Use `stdStream.isTerminal()` instead.",
|
||||
"Use `Deno.stdin.isTerminal()`, `Deno.stdout.isTerminal()` or `Deno.stderr.isTerminal()` instead.",
|
||||
);
|
||||
return op_is_terminal(rid);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue