Skip to content

Commit 2e1aaae

Browse files
authored
Update NewTerminalError method to be not instance method (#83)
Cannot instantiate without this change.
1 parent a1b0863 commit 2e1aaae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/errors/error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ type TerminalError struct {
9292
err error
9393
}
9494

95-
func (e TerminalError) New(terminalError error) *TerminalError {
95+
func NewTerminalError(terminalError error) *TerminalError {
9696
return &TerminalError{err: terminalError}
9797
}
9898

0 commit comments

Comments
 (0)