Skip to content

Commit f084dd2

Browse files
fix graphql errors (#109)
1 parent cf752ec commit f084dd2

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.34.8
1+
0.34.9

pkg/codefresh/common.go

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,17 @@ package codefresh
33
import (
44
"fmt"
55
"strings"
6-
76
)
87

98
type graphqlError struct {
10-
Message string
11-
Locations [] struct {
12-
Line int
13-
Column int
14-
}
15-
Extensions struct {
16-
Code string
17-
Exception struct {
18-
Stacktrace []string
19-
}
20-
}
9+
Message string
10+
Extensions string
2111
}
2212

2313
type graphqlErrorResponse struct {
24-
errors []graphqlError
14+
errors []graphqlError
2515
concatenatedErrors string
2616
}
27-
2817

2918
func (e graphqlErrorResponse) Error() string {
3019

@@ -37,4 +26,4 @@ func (e graphqlErrorResponse) Error() string {
3726
}
3827
e.concatenatedErrors = sb.String()
3928
return e.concatenatedErrors
40-
}
29+
}

0 commit comments

Comments
 (0)