You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this is continuation of #3219. I noticed that although the original unhandledRejection is fixed, esbuild is still logging an error upon SIGINT. Using the same script as in #3219 (comment), I now get the following output:
building...
^CSIGINT detected
Error caught: Error: The service was stopped
at /Users/josh/code/projects/super-server/node_modules/esbuild/lib/main.js:1083:25
at responseCallbacks.<computed> (/Users/josh/code/projects/super-server/node_modules/esbuild/lib/main.js:703:9)
at Socket.afterClose (/Users/josh/code/projects/super-server/node_modules/esbuild/lib/main.js:693:28)
at Socket.emit (node:events:526:35)
at endReadableNT (node:internal/streams/readable:1408:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
I'm using logLevel: "silent", so esbuild really shouldn't be logging things without me asking for it. In my application, the expected behavior when the user cancels a build (via SIGINT) is for there to be no output, but I can't achieve this due to esbuild logging this error without my consent. I don't want the error to be displayed to the user.
The text was updated successfully, but these errors were encountered:
The log starts with Error caught: which is the string from your source code. If you don't want this error to be logged, then you should not have your code log the error. The following patch adjusts the script in #3219 (comment) to not log the error:
Hi, this is continuation of #3219. I noticed that although the original
unhandledRejection
is fixed, esbuild is still logging an error upon SIGINT. Using the same script as in #3219 (comment), I now get the following output:I'm using
logLevel: "silent"
, so esbuild really shouldn't be logging things without me asking for it. In my application, the expected behavior when the user cancels a build (via SIGINT) is for there to be no output, but I can't achieve this due to esbuild logging this error without my consent. I don't want the error to be displayed to the user.The text was updated successfully, but these errors were encountered: