Skip to content

Commit 650fd27

Browse files
committed
Fix to properly implement error interface
1 parent 35ee1f6 commit 650fd27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/jsonnet-fmt-hook/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type FmtError struct {
4040
stderr string
4141
}
4242

43-
func (e *FmtError) Error() string {
43+
func (e FmtError) Error() string {
4444
stderr := strings.TrimSpace(e.stderr)
4545

4646
if stderr != "" || e.diff == nil {

0 commit comments

Comments
 (0)