We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f106e8 commit b54d671Copy full SHA for b54d671
package/src/cmd/pkg-cmd.ts
@@ -7,7 +7,7 @@
7
import { Command } from "cliffy/command/mod.ts";
8
import { join } from "../../../src/deno_ral/path.ts";
9
10
-import { configurationAST } from "../common/config.ts";
+import { configurationAST, printConfiguration } from "../common/config.ts";
11
12
import {
13
Configuration,
@@ -50,7 +50,11 @@ export function packageCommand(run: (config: Configuration) => Promise<void>) {
50
Deno.env.set("QUARTO_DEBUG", "true");
51
52
// Print the configuration
53
- await logPandocJson(configurationAST(config));
+ try {
54
+ await logPandocJson(configurationAST(config));
55
+ } catch (e) {
56
+ printConfiguration(config);
57
+ }
58
59
// Run the command
60
await run(config);
0 commit comments