Skip to content

Commit b54d671

Browse files
committed
fallback to old print during configuration
1 parent 5f106e8 commit b54d671

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package/src/cmd/pkg-cmd.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { Command } from "cliffy/command/mod.ts";
88
import { join } from "../../../src/deno_ral/path.ts";
99

10-
import { configurationAST } from "../common/config.ts";
10+
import { configurationAST, printConfiguration } from "../common/config.ts";
1111

1212
import {
1313
Configuration,
@@ -50,7 +50,11 @@ export function packageCommand(run: (config: Configuration) => Promise<void>) {
5050
Deno.env.set("QUARTO_DEBUG", "true");
5151

5252
// Print the configuration
53-
await logPandocJson(configurationAST(config));
53+
try {
54+
await logPandocJson(configurationAST(config));
55+
} catch (e) {
56+
printConfiguration(config);
57+
}
5458

5559
// Run the command
5660
await run(config);

0 commit comments

Comments
 (0)