Skip to content

Commit 42448ee

Browse files
committed
Restore exception
1 parent 6c8a398 commit 42448ee

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

frontend/vite.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ function thirdPartyLicenses(): PluginOption {
8585
return {
8686
name: "third-party-licenses",
8787
buildStart() {
88-
execSync("cargo run -p third-party-licenses", { stdio: "inherit" });
88+
try {
89+
execSync("cargo run -p third-party-licenses", { stdio: "inherit" });
90+
} catch (e) {
91+
throw new Error("Failed to generate third-party licenses", { cause: e });
92+
}
8993
},
9094
writeBundle(options) {
9195
copyFileSync(path.resolve(projectRootDir, "third-party-licenses.txt"), path.join(options.dir || "dist", "third-party-licenses.txt"));

0 commit comments

Comments
 (0)