Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deno.consoleSize gives a poor error message when both stdout and stderr are piped #22162

Open
dsherret opened this issue Jan 28, 2024 · 0 comments
Labels
bug Something isn't working correctly runtime Relates to code in the runtime crate

Comments

@dsherret
Copy link
Member

> deno eval 'console.log(Deno.consoleSize())' 2>&1 | deno eval 'Deno.stdin.readable.pipeTo(Deno.stdout.writable)'
error: Uncaught (in promise) Error: The handle is invalid. (os error 6)
console.log(Deno.consoleSize())
                 ^
    at Object.consoleSize (ext:runtime/40_tty.js:14:3)
    at file:///V:/scratch/$deno$eval:1:18

Version: Deno 1.40.1

Related: #17982

@dsherret dsherret added the bug Something isn't working correctly label Mar 14, 2024
@lucacasonato lucacasonato added the runtime Relates to code in the runtime crate label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly runtime Relates to code in the runtime crate
Projects
None yet
Development

No branches or pull requests

2 participants