mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
This reverts commit bba7c23957.
This commit is contained in:
3
vendor/github.com/99designs/gqlgen/graphql/error.go
generated
vendored
3
vendor/github.com/99designs/gqlgen/graphql/error.go
generated
vendored
@@ -26,8 +26,7 @@ func ErrorOnPath(ctx context.Context, err error) error {
|
||||
if gqlErr.Path == nil {
|
||||
gqlErr.Path = GetPath(ctx)
|
||||
}
|
||||
// Return the original error to avoid losing any attached annotation
|
||||
return err
|
||||
return gqlErr
|
||||
}
|
||||
return gqlerror.WrapPath(GetPath(ctx), err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user