Skip to content

Commit

Permalink
🛠 Improve swift errors printing
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaelIsaev committed Dec 15, 2023
1 parent c069fd6 commit d342e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/WebberTools/Swift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public class Swift {
switch command {
case .build:
let errors: [CompilationError] = pasreCompilationErrors(rawError)
guard errors.count > 0 else { throw SwiftError.text("Unable to parse errors") }
guard errors.count > 0 else { throw SwiftError.text("Unable to parse errors: \(rawError)") }
throw SwiftError.errors(errors)
default:
throw SwiftError.raw(rawError)
Expand Down

0 comments on commit d342e52

Please sign in to comment.