Skip to content

Commit c45116a

Browse files
authored
Merge pull request #563 from swiftlang/owenv/attachment-error
Improve error message when build description attachment saving fails
2 parents 5bbe231 + 8502138 commit c45116a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SWBTaskExecution/BuildDescriptionManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ private final class BuildSystemTaskPlanningDelegate: TaskPlanningDelegate {
753753
try fileSystem.createDirectory(path.dirname, recursive: true)
754754
try fileSystem.write(path, contents: contents)
755755
} catch {
756-
constructionDelegate.emit(Diagnostic(behavior: .error, location: .unknown, data: DiagnosticData("failed to save attachment: \(path.str)")))
756+
constructionDelegate.emit(Diagnostic(behavior: .error, location: .unknown, data: DiagnosticData("failed to save attachment: \(path.str). Error: \(error)")))
757757
}
758758
return path
759759
}

0 commit comments

Comments
 (0)