Skip to content

Commit

Permalink
fix: handle error when operator cannot start (#930)
Browse files Browse the repository at this point in the history
Resolves: #929

Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
  • Loading branch information
danielpacak committed Jan 25, 2022
1 parent c18a53e commit 329c812
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/starboard-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"os"

"github.com/aquasecurity/starboard/pkg/operator"
"github.com/aquasecurity/starboard/pkg/operator/etc"
Expand Down Expand Up @@ -31,7 +32,8 @@ var (
// main is the entrypoint of the Starboard Operator executable command.
func main() {
if err := run(); err != nil {
setupLog.Error(err, "Unable to run starboard operator")
fmt.Fprintf(os.Stderr, "unable to run starboard operator: %v\n", err)
os.Exit(1)
}
}

Expand Down

0 comments on commit 329c812

Please sign in to comment.