8000 Update comments · open-lambda/open-lambda@735a6f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 735a6f7

Browse files
yamada-sextatylerharter
authored andcommitted
Update comments
1 parent 88c2305 commit 735a6f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/worker/helpers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,11 @@ const (
185185
func checkState(olPath string) (OlState, int, error) {
186186
dirStat, err := os.Stat(olPath)
187187
if os.IsNotExist(err) {
188+
// If OL Path doesn't exist, Open Lambda is not initialized.
188189
return Uninitialized, -1, nil
189190
}
190191
if !dirStat.IsDir() {
191-
return Unknown, -1, fmt.Errorf("OL Path is not a directory")
192+
return Unknown, -1, fmt.Errorf("olPath is not a directory")
192193
}
193194

194195
// Locate the worker.pid file, use it to get the worker's PID

0 commit comments

Comments
 (0)
0