Skip to content

Commit c15687b

Browse files
author
JJ Allaire
committed
propagate error from dart compilation
1 parent cd56081 commit c15687b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/core/dart-sass.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,13 @@ async function dartCommand(args: string[]) {
5555
{
5656
cmd,
5757
stdout: "piped",
58+
stderr: "piped",
5859
},
5960
);
6061

6162
if (result.success) {
6263
return result.stdout;
6364
} else {
64-
throw new Error("Sass command failed");
65+
throw new Error("Theme file compilation failed:\n\n" + result.stderr);
6566
}
6667
}

0 commit comments

Comments
 (0)