Skip to content

Commit 50c6ff4

Browse files
gh-action-runnergh-action-runner
authored andcommitted
Squashed 'apollo-ios-codegen/' changes from 54f10e351..7e754865b
7e754865b Improve error description formatting for validation failure (#846) git-subtree-dir: apollo-ios-codegen git-subtree-split: 7e754865ba8f7ebde21a99eb4ea222df8f5c2f54
1 parent a2501f1 commit 50c6ff4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/ApolloCodegenLib/ApolloCodegen+Errors.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ extension ApolloCodegen {
2323
switch self {
2424
case let .graphQLSourceValidationFailure(lines):
2525
return """
26-
An error occured during validation of the GraphQL schema or operations! Check \(lines)
26+
An error occured during validation of the GraphQL schema or operations! Check:
27+
\(lines.joined(separator: "\n "))
2728
"""
2829
case .testMocksInvalidSwiftPackageConfiguration:
2930
return """

0 commit comments

Comments
 (0)