Skip to content

Commit

Permalink
added additional throw
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Oct 24, 2024
1 parent e6b6f5a commit a79924c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/nexrender-core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ const render = (jobConfig, settings = {}) => {
.then(job => state(job, settings, postrender, 'postrender'))
.then(job => state(job, settings, cleanup, 'cleanup'))
.catch(e => {
console.log('catching the error internally')
state(job, settings, cleanup, 'cleanup');
throw e;
});
Expand Down
2 changes: 2 additions & 0 deletions packages/nexrender-worker/src/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ const createWorker = () => {

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

Expand Down

0 comments on commit a79924c

Please sign in to comment.