Skip to content

Commit

Permalink
Update SwiftTemplate to only error when exit code isn't 0 (ignore war…
Browse files Browse the repository at this point in the history
…nings sent to stdout)
  • Loading branch information
liamnichols committed Mar 23, 2022
1 parent 21df065 commit 8c5dc81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SourcerySwift/Sources/SwiftTemplate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ open class SwiftTemplate {
arguments: arguments,
currentDirectoryPath: buildDir)

if compilationResult.exitCode != 0 || !compilationResult.error.isEmpty {
if compilationResult.exitCode != EXIT_SUCCESS {
throw [compilationResult.output, compilationResult.error]
.filter { !$0.isEmpty }
.joined(separator: "\n")
Expand Down

0 comments on commit 8c5dc81

Please sign in to comment.