Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin committed Nov 15, 2023
1 parent 33ce916 commit 225fbcf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ function generate(path: string, debug = false) {
const spawn = spawnSync("autorest", args, { stdio: "inherit" });

if (spawn.status !== 0) {
throw new Error(`Generation failed, command:\n autorest ${args.join(" ")}`);
throw new Error(
`Generation failed, command:\n autorest ${args.join(" ")}\nStdout:\n${spawn.stdout}\nStderr:\n${spawn.stderr}`,
);
}
}

Expand Down

0 comments on commit 225fbcf

Please sign in to comment.