Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Mar 17, 2022
1 parent 99e54da commit e62c94a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/odo/util/cmdutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// LogErrorAndExit prints the cause of the given error and exits the code with an
// exit code of 1.
// If the context is provided, then that is printed, if not, then the cause is
// displayed
// LogErrorAndExit prints the given error and exits the code with an exit code of 1.
// If the context is provided, then that is printed alongside the error.
// *If* we are using the global json parameter, we instead output the json output
func LogErrorAndExit(err error, context string, a ...interface{}) {

Expand Down

0 comments on commit e62c94a

Please sign in to comment.