Skip to content

Commit

Permalink
🐛 Throw error if typst is not available (#1013)
Browse files Browse the repository at this point in the history
Co-authored-by: Rowan Cockett <[email protected]>
  • Loading branch information
agoose77 and rowanc1 authored Mar 21, 2024
1 parent dece053 commit 8aca668
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clever-dolls-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"myst-cli": patch
---

Throw loud error if `typst` is not available
2 changes: 1 addition & 1 deletion packages/myst-cli/src/build/typst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function isTypstAvailable() {

export async function runTypstExecutable(session: ISession, typstFile: string) {
if (!isTypstAvailable()) {
session.log.debug('typst CLI must be installed to build PDFs from typst');
session.log.error('The typst CLI must be installed to build PDFs with typst');
return;
}
if (path.extname(typstFile) !== '.typ') {
Expand Down

0 comments on commit 8aca668

Please sign in to comment.