Fixes/recover dying during starting (#1224)

* fix: Fix the panic becaues of the double install logging

Co-authored-by: Aiden McClelland <dr-bonez@users.noreply.github.com>

* fix: Clippy fix for docker

* chore: Add notification on top of error

Co-authored-by: Aiden McClelland <dr-bonez@users.noreply.github.com>
This commit is contained in:
J M
2022-02-16 16:38:59 -07:00
committed by GitHub
parent d204c1dfba
commit 4a69b1138d
4 changed files with 54 additions and 24 deletions

View File

@@ -152,7 +152,7 @@ impl DockerAction {
} else {
EitherFuture::Left(futures::future::pending::<Result<_, Error>>())
};
if let (Some(input), Some(stdin)) = (&input_buf, &mut handle.stdin) {
if let (Some(input), Some(mut stdin)) = (&input_buf, handle.stdin.take()) {
use tokio::io::AsyncWriteExt;
stdin
.write_all(input)