Skip to content

Commit

Permalink
build: fix errors being ignored when pdk-builder build fails
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Nov 22, 2024
1 parent 6c5a267 commit df8260e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdk.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export default defineConfig({
stdio: 'inherit',
});

if (buffer.error) {
throw buffer.error;
if (buffer.status !== 0) {
throw new Error('Build failed.');
}
},
},
Expand Down

0 comments on commit df8260e

Please sign in to comment.