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

Commit b9c4c86

Browse files
committed
Replace print with logger.error for handling graph rendering error
Related to #48
1 parent 14b8467 commit b9c4c86

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
@@ -86,7 +86,7 @@ struct Relationships: Component {
8686
do {
8787
svg = try HypertextLiteral.HTML(String(data: graph.render(using: algorithm, to: .svg), encoding: .utf8) ?? "")
8888
} catch {
89-
print(error)
89+
logger.error("\(error)")
9090
}
9191

9292
return #"""

0 commit comments

Comments
 (0)