Skip to content

Commit

Permalink
moved the error to render
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Oct 24, 2024
1 parent 6bd59c7 commit 90acb58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions packages/nexrender-core/src/tasks/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ Estimated date of change to the new behavior: 2023-06-01.\n`);
job.onRenderError(job, new Error(matchError[1]));
}
errorSent = true
throw new Error(matchError[1]);
}

return data;
Expand Down
2 changes: 0 additions & 2 deletions packages/nexrender-worker/src/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ const createWorker = () => {

if (settings.onRenderError) {
settings.onRenderError(currentJob, err);
} else {
throw err;
}
}

Expand Down

0 comments on commit 90acb58

Please sign in to comment.