Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 97703f7

Browse files
committed
fixup! Add rich error message for sh into off environment
1 parent e8f622d commit 97703f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cmd/shell.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ func runCommand(ctx context.Context, envName, command string, args []string) err
199199
func networkErr(client *coder.Client, env *coder.Environment) error {
200200
if env.LatestStat.ContainerStatus != coder.EnvironmentOn {
201201
return clog.Fatal(
202-
"environment is not running",
202+
"environment is not running",
203203
fmt.Sprintf("environment %q is not running", env.Name),
204-
fmt.Sprintf("its current status is %q",env.LatestStat.ContainerStatus),
204+
fmt.Sprintf("its current status is %q", env.LatestStat.ContainerStatus),
205205
"",
206206
clog.Bold("tip: ")+fmt.Sprintf("run \"coder envs rebuild %s --follow\" to start the environment", env.Name),
207207
)

0 commit comments

Comments
 (0)