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

Commit 3cb15ef

Browse files
authored
Merge pull request #23 from cybozu-go/add-error-handling
Add error handling for failed index creation
2 parents 62fc40f + 9f89e19 commit 3cb15ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func main() {
100100

101101
if err = indexing.SetupIndexForPod(ctx, mgr); err != nil {
102102
setupLog.Error(err, "unable to create index for pod")
103+
os.Exit(1)
103104
}
104105

105106
if err = (&controller.PodReconciler{

0 commit comments

Comments
 (0)