Skip to content

Commit

Permalink
Keep console.error for PDF rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Dec 5, 2024
1 parent d4a2cf2 commit 3a161f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/lib/api/tests/addons.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ describe("addon payloads", () => {
const form = buildForm(parameters);
const payload = addons.buildPayload(scraper, form, true);

if (payload.errors) {
console.warn(payload.errors);
}
expect(payload.valid).toBeTruthy();

expect(payload).toMatchObject({
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/viewer/ViewerContext.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ layouts, stories, and tests.
};
task.promise.catch((error) => {
console.warn(error);
console.error(error);
$currentErrors = [...$currentErrors, error];
throw error;
});
Expand Down

0 comments on commit 3a161f0

Please sign in to comment.