Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 11386b9

Browse files
committed
Log warning message when failing to generate graph
1 parent 034506a commit 11386b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/swift-doc/Supporting Types/Components/Relationships.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct Relationships: Component {
4949
do {
5050
return try HypertextLiteral.HTML(String(data: graph.render(using: algorithm, to: .svg), encoding: .utf8) ?? "")
5151
} catch {
52-
logger.error("\(error)")
52+
logger.warning("Failed to generate relationship graph for \(symbol.id). Please ensure that GraphViz binaries are accessible from your PATH. (\(error))")
5353
return nil
5454
}
5555
}

0 commit comments

Comments
 (0)