You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			17 lines
		
	
	
		
			397 B
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			17 lines
		
	
	
		
			397 B
		
	
	
	
		
			JavaScript
		
	
const addUnhandledErrorHandler = require('electron-unhandled');
 | 
						|
 | 
						|
const Errors = require('../js/modules/types/errors');
 | 
						|
 | 
						|
//      addHandler :: Unit -> Unit
 | 
						|
exports.addHandler = () => {
 | 
						|
  addUnhandledErrorHandler({
 | 
						|
    logger: error => {
 | 
						|
      console.error(
 | 
						|
        'Uncaught error or unhandled promise rejection:',
 | 
						|
        Errors.toLogFormat(error)
 | 
						|
      );
 | 
						|
    },
 | 
						|
    showDialog: false,
 | 
						|
  });
 | 
						|
};
 |