Skip to content

Commit

Permalink
server: Tweak server error string format
Browse files Browse the repository at this point in the history
This just tweaks the error string format introduced in #1530 to be
consistent with other error strings in OPA (e.g., topdown, ast, etc.)

Signed-off-by: Torin Sandall <[email protected]>
  • Loading branch information
tsandall committed Jul 3, 2019
1 parent 6b23292 commit e757b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func NewErrorV1(code, f string, a ...interface{}) *ErrorV1 {

// This shall only used for debugging purpose.
func (e *ErrorV1) Error() string {
return fmt.Sprintf("Code: %s, Message: %s", e.Code, e.Message)
return fmt.Sprintf("%s: %s", e.Code, e.Message)
}

// WithError updates e to include a detailed error.
Expand Down

0 comments on commit e757b9f

Please sign in to comment.