Skip to content

Commit

Permalink
Update NewTerminalError method to be not instance method (#83)
Browse files Browse the repository at this point in the history
Cannot instantiate without this change.
  • Loading branch information
nmvk authored Apr 5, 2022
1 parent a1b0863 commit 2e1aaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/errors/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type TerminalError struct {
err error
}

func (e TerminalError) New(terminalError error) *TerminalError {
func NewTerminalError(terminalError error) *TerminalError {
return &TerminalError{err: terminalError}
}

Expand Down

0 comments on commit 2e1aaae

Please sign in to comment.