Skip to content

Commit da57a92

Browse files
committed
fix: ignore graphviz installation error on windows
1 parent 3ff2184 commit da57a92

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/doxygen/doxygen.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
3232
switch (process.platform) {
3333
case "win32": {
3434
await setupChocoPack("doxygen.install", version)
35-
await setupChocoPack("graphviz", undefined)
35+
try {
36+
await setupChocoPack("graphviz", undefined)
37+
} catch (err) {
38+
warning(`${err}`)
39+
}
3640
const binDir = activateWinDoxygen()
3741
return { binDir }
3842
}

0 commit comments

Comments
 (0)