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

Commit c27b644

Browse files
committed
Catch and log error when writing pages in generate subcommand
Resolves #37
1 parent b9c4c86 commit c27b644

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/swift-doc/Subcommands/Generate.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ extension SwiftDoc {
9090
let url = outputDirectoryURL.appendingPathComponent(filename)
9191
try $0.value.write(to: url, format: format)
9292
}
93+
} catch {
94+
logger.error("\(error)")
9395
}
9496
}
9597
}

0 commit comments

Comments
 (0)