Skip to content

Commit 0620850

Browse files
author
David Ungar
committed
only warn
1 parent 8c4a0a4 commit 0620850

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraph.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ extension ModuleDependencyGraph {
675675
bytes: data,
676676
atomically: true)
677677
} catch {
678-
info.diagnosticEngine.emit(.error_could_not_write_dep_graph(to: path))
678+
info.diagnosticEngine.emit(.warning_could_not_write_dep_graph(to: path, error: error))
679679
}
680680
}
681681

@@ -1035,10 +1035,11 @@ fileprivate extension DependencyKey.Designator {
10351035
}
10361036

10371037
extension Diagnostic.Message {
1038-
fileprivate static func error_could_not_write_dep_graph(
1039-
to path: VirtualPath
1038+
fileprivate static func warning_could_not_write_dep_graph(
1039+
to path: VirtualPath,
1040+
error: Error
10401041
) -> Diagnostic.Message {
1041-
.error("could not write driver dependency graph to \(path)")
1042+
.warning("could not write driver dependency graph to \(path), \(error.localizedDescription)")
10421043
}
10431044
}
10441045

0 commit comments

Comments
 (0)