Skip to content

Commit fcbd19e

Browse files
committed
fix: Preserve Extensions in FormattedError during concurrent execution
1 parent a546af7 commit fcbd19e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gqlerrors/formatted.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ func FormatError(err error) FormattedError {
4747
if extended, ok := err.(ExtendedError); ok {
4848
ret.Extensions = extended.Extensions()
4949
}
50+
if formatted, ok := err.(FormattedError); ok {
51+
ret.Extensions = formatted.Extensions
52+
}
5053
}
5154
return ret
5255
case Error:

0 commit comments

Comments
 (0)