Skip to content

Commit

Permalink
chore: test error for build
Browse files Browse the repository at this point in the history
  • Loading branch information
itsacoyote committed Apr 24, 2024
1 parent 533ff62 commit 3c7e236
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions content/00.build/10.quick-start/10.hello-zksync.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Let's dive in and start your developer journey on zkSync!

## Prerequisites

%%foobar%%

This Quickstart series requires some initial setup of tools to elevate your
development experience building for zkSync.
Make sure to go through the setup provided in the initial [Getting Started](/build/quick-start) section.
Expand Down
12 changes: 9 additions & 3 deletions server/plugins/parse-zk-tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ export default defineNitroPlugin((nitroApp) => {
const regex = /%%/gm;
const body = JSON.stringify(file.body);
if (regex.test(body)) {
console.error(`${file._file}
Invalid format: Unparsed %% zk_tag found in file body
`);
if (process.env.NODE_ENV !== 'development') {
throw createError({
status: 500,
message: `Unparsed %% zk_tag found in ${file._file}`,
fatal: true,
});
} else {
console.error(`Unparsed %% zk_tag found in ${file._file}`);
}
}
}
});
Expand Down

0 comments on commit 3c7e236

Please sign in to comment.