Skip to content

Commit

Permalink
removes extra error suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ramon committed Jul 20, 2018
1 parent 8752c8e commit 94e3a3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1934,7 +1934,7 @@ type extendedError struct {
extensions map[string]interface{}
}

func (err extendedError) ErrorExtensions() map[string]interface{} {
func (err extendedError) Extensions() map[string]interface{} {
return err.extensions
}

Expand Down
4 changes: 2 additions & 2 deletions gqlerrors/formatted.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

type ExtendedError interface {
error
ErrorExtensions() map[string]interface{}
Extensions() map[string]interface{}
}

type FormattedError struct {
Expand Down Expand Up @@ -39,7 +39,7 @@ func FormatError(err error) FormattedError {
}
if err := err.OriginalError; err != nil {
if extended, ok := err.(ExtendedError); ok {
ret.Extensions = extended.ErrorExtensions()
ret.Extensions = extended.Extensions()
}
}
return ret
Expand Down

0 comments on commit 94e3a3f

Please sign in to comment.