if (!global.DEV_MODE) {
  process.on('uncaughtException', (error) => {
    console.error(error);
    Emitter.sendToGooglePlayMusic('error', {
      error: {
        message: error.message,
        stack: error.stack,
      },
    });
  });
}

process.on('uncaughtException', (error) => {
  console.error(error);
  if (global.DEV_MODE) return;
  Emitter.sendToGooglePlayMusic('error', {
    error: {
      message: error.message,
      stack: error.stack,
    },
  });
});

Change error handling in dev mode
Change error handling in dev mode
