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

Log warning message when failing to generate graph #100

Merged
merged 3 commits into from
May 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ as well as top-level type aliases, functions, and variables.
## Requirements

- Swift 5.2
- [GraphViz][graphviz] _(optional)_

## Command-Line Utility

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct Relationships: Component {
do {
return try HypertextLiteral.HTML(String(data: graph.render(using: algorithm, to: .svg), encoding: .utf8) ?? "")
} catch {
logger.error("\(error)")
logger.warning("Failed to generate relationship graph for \(symbol.id). Please ensure that GraphViz binaries are accessible from your PATH. (\(error))")
return nil
}
}
Expand Down