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

Commit 44f7cce

Browse files
committed
emit a warning if no pages were found to render
1 parent c9e904d commit 44f7cce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/swift-doc/Subcommands/Generate.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ extension SwiftDoc {
7272
pages[path(for: name)] = GlobalPage(module: module, name: name, symbols: symbols)
7373
}
7474

75-
guard !pages.isEmpty else { return }
75+
guard !pages.isEmpty else {
76+
logger.warning("No pages were found to render.")
77+
return
78+
}
7679

7780
if pages.count == 1, let page = pages.first?.value {
7881
let filename: String

0 commit comments

Comments
 (0)