From 875ff2b69e90de7ff02abf64fd3e423404b9188c Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 26 May 2022 18:19:32 -0400 Subject: [PATCH] fix(server): use session stderr on ssh cli interface --- server/middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/middleware.go b/server/middleware.go index f6e1b9806..c45cfad4f 100644 --- a/server/middleware.go +++ b/server/middleware.go @@ -33,7 +33,7 @@ func softMiddleware(ac *appCfg.Config) wish.Middleware { cmd.Use = use cmd.SetIn(s) cmd.SetOut(s) - cmd.SetErr(s) + cmd.SetErr(s.Stderr()) cmd.SetArgs(s.Command()) err := cmd.ExecuteContext(ctx) if err != nil {