Skip to content

Commit

Permalink
fix: exit with non 0 code (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato authored Oct 7, 2020
1 parent a297afa commit d68b987
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ try {
.parse(Deno.args);
} catch (err) {
console.log(colors.red(colors.bold("error: ")) + err.message);
Deno.exit(1);
}

async function build(
Expand Down
4 changes: 0 additions & 4 deletions src/plugins/dext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ async function getStaticPaths(
const out = await proc.output();
const { success } = await proc.status();
if (!success) {
console.log(out);
throw new Error("Failed to get static paths");
}
if (out.length === 0) return undefined;
Expand Down Expand Up @@ -232,7 +231,6 @@ async function getStaticData(
const out = await proc.output();
const { success } = await proc.status();
if (!success) {
console.log(out);
throw new Error("Failed to get static data");
}
if (out.length === 0) return undefined;
Expand Down Expand Up @@ -266,7 +264,6 @@ async function prerenderDocument(
const out = await proc.output();
const { success } = await proc.status();
if (!success) {
console.log(out);
throw new Error("Failed to prerender document");
}
const stdout = decoder.decode(out);
Expand Down Expand Up @@ -320,7 +317,6 @@ async function prerenderPage(
const out = await proc.output();
const { success } = await proc.status();
if (!success) {
console.log(out);
throw new Error("Failed to prerender page");
}
const stdout = decoder.decode(out);
Expand Down

0 comments on commit d68b987

Please sign in to comment.