Error handling bugfix: pass #2
This commit is contained in:
+6
-5
@@ -162,11 +162,12 @@ export default async function watcherEsbuildCTX() {
|
||||
});
|
||||
}
|
||||
catch (error) {
|
||||
logBuildErrorsOnce([
|
||||
{
|
||||
text: `Watcher rebuild failed: ${error?.message || String(error)}`,
|
||||
},
|
||||
], (line) => log.error(line));
|
||||
// A "Build failed with N errors" rejection is the same
|
||||
// failure the tracker's onEnd already reported (deduped).
|
||||
const msg = String(error?.message || error || "");
|
||||
if (!msg.startsWith("Build failed with")) {
|
||||
logBuildErrorsOnce([{ text: `Watcher rebuild failed: ${msg}` }], (line) => log.error(line));
|
||||
}
|
||||
}
|
||||
finally {
|
||||
if (owns_recompile) {
|
||||
|
||||
Reference in New Issue
Block a user