Skip to content

Commit 31b2322

Browse files
author
David Ungar
committed
only warn
1 parent b77a275 commit 31b2322

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraph.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,8 @@ extension ModuleDependencyGraph {
674674
try fileSystem.writeFileContents(path,
675675
bytes: data,
676676
atomically: true)
677-
} catch let e {
678-
info.diagnosticEngine.emit(.error_could_not_write_dep_graph(to: path, error: e))
677+
} catch {
678+
info.diagnosticEngine.emit(.warning_could_not_write_dep_graph(to: path, error: error))
679679
}
680680
}
681681

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

10371037
extension Diagnostic.Message {
1038-
fileprivate static func error_could_not_write_dep_graph(
1038+
fileprivate static func warning_could_not_write_dep_graph(
10391039
to path: VirtualPath,
1040-
error: Swift.Error
1040+
error: Error
10411041
) -> Diagnostic.Message {
1042-
.error("could not write driver dependency graph to \(path). Returned error was: \(error)")
1042+
.warning("could not write driver dependency graph to \(path), Returned error was: \(error.localizedDescription)")
10431043
}
10441044
}
10451045

0 commit comments

Comments
 (0)