Clarify internal error.

This commit is contained in:
Ian Jackson 2022-11-29 17:22:16 +00:00 committed by Nick Mathewson
parent 75cba2ce80
commit 211a832f6d
1 changed files with 2 additions and 2 deletions

View File

@ -374,10 +374,10 @@ impl AsyncPtChild {
fn new(mut child: Child) -> Result<Self, PtError> {
let (stdin, stdout) = (
child.stdin.take().ok_or_else(|| {
PtError::Internal(internal!("Created child process without stdin"))
PtError::Internal(internal!("Created child process without stdin pipe"))
})?,
child.stdout.take().ok_or_else(|| {
PtError::Internal(internal!("Created child process without stdout"))
PtError::Internal(internal!("Created child process without stdout pipe"))
})?,
);
let (mut tx, rx) = mpsc::channel(PT_STDIO_BUFFER);