anurag008w commited on
Commit
63a656f
·
1 Parent(s): f72a7b7

Handle additional uncaught exceptions in iframe-fix

Browse files
Files changed (1) hide show
  1. iframe-fix.cjs +1 -0
iframe-fix.cjs CHANGED
@@ -1,5 +1,6 @@
1
  process.on('uncaughtException', function(err) {
2
  if (err.code === 'EPIPE') return;
 
3
  throw err;
4
  });
5
  /**
 
1
  process.on('uncaughtException', function(err) {
2
  if (err.code === 'EPIPE') return;
3
+ if (err.code === 'ECONNRESET' || err.code === 'ENOTCONN' || err.code === 'ERR_STREAM_DESTROYED') return;
4
  throw err;
5
  });
6
  /**