mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			16 lines
		
	
	
		
			380 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			380 B
		
	
	
	
		
			JavaScript
		
	
	
	
| /*
 | |
| 	MIT License http://www.opensource.org/licenses/mit-license.php
 | |
| 	Author Tobias Koppers @sokra
 | |
| */
 | |
| function ModuleError(module, err) {
 | |
| 	Error.call(this);
 | |
| 	Error.captureStackTrace(this, ModuleError);
 | |
| 	this.name = "ModuleError";
 | |
| 	this.module = module;
 | |
| 	this.message = err;
 | |
| 	this.error = err;
 | |
| }
 | |
| module.exports = ModuleError;
 | |
| 
 | |
| ModuleError.prototype = Object.create(Error.prototype);
 |