Massive update to html rendering
This commit is contained in:
parent
d550f057c5
commit
10c84d2dce
5 changed files with 25 additions and 33 deletions
14
src/index.ts
14
src/index.ts
|
@ -121,12 +121,18 @@ async function main(): Promise<number> {
|
|||
|
||||
for await (const event of watcher) {
|
||||
console.log(`Detected ${event.eventType} on ${event.filename}`);
|
||||
lastProcessResult = await processBinding(cliArguments);
|
||||
|
||||
if (lastProcessResult === ExitCode.Error) {
|
||||
try {
|
||||
lastProcessResult = await processBinding(cliArguments);
|
||||
|
||||
if (lastProcessResult === ExitCode.Error) {
|
||||
console.error(`Error processing ${event.filename}`);
|
||||
} else {
|
||||
console.log("Reprocessed changes");
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(`Error processing ${event.filename}`);
|
||||
} else {
|
||||
console.log("Reprocessed changes");
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
return ExitCode.Success;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue