10000 Update bringToStoppedClean error · open-lambda/open-lambda@a44d179 · GitHub
[go: up one dir, main page]

Skip to content

Commit a44d179

Browse files
yamada-sextatylerharter
authored andcommitted
Update bringToStoppedClean error
1 parent d0abb7f commit a44d179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/worker/helpers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ func bringToStoppedClean(olPath string) error {
384384
case Uninitialized:
385385
fmt.Println("OpenLambda is not initialized. You should initialized it.")
386386
return fmt.Errorf("cannot bring Uninitialized to StoppedClean")
387-
case Unknown:
388-
return fmt.Errorf("cannot bring Unknown to StoppedClean")
387+
default:
388+
return fmt.Errorf("Unrecognized state")
389389
}
390390

391391
return nil

0 commit comments

Comments
 (0)
0