Skip to content

Commit

Permalink
Remove onError call, log readline error instead
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Oct 17, 2024
1 parent 5457efd commit 5a2765e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lifecycle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,8 @@ export async function transform(name, strategy, state) {
appendFileSync(outputPath, `${write}\n`);
}
});
// TODO: Figure out how `onError` shall be handled.
// NOTE: Actually, new strategies don't even implement this anymore.
rl.on("error", (error) => {
const props = { args: strategy.args, state, error, execute };
const write = strategy.module.onError(props);
log(`Error from rl in transform: ${error.stack}`);
});

await once(rl, "close");
Expand Down

0 comments on commit 5a2765e

Please sign in to comment.