fix(pre): improved logging
This commit is contained in:
		
							parent
							
								
									1f70215ffe
								
							
						
					
					
						commit
						7ba1cb956f
					
				| @ -51,9 +51,11 @@ module.exports = function (options, plugins, cb) { | |||||||
| 
 | 
 | ||||||
|       var verification = require(opts.name) |       var verification = require(opts.name) | ||||||
| 
 | 
 | ||||||
|  |       console.log('Running verification hook...') | ||||||
|  | 
 | ||||||
|       verification(opts, function (error, ok) { |       verification(opts, function (error, ok) { | ||||||
|         if (!error && ok) return writePkg() |         if (!error && ok) return writePkg() | ||||||
|         console.log(error || 'Verification failed') |         console.log('Verification failed' + (error ? ': ' + error : '')) | ||||||
|         process.exit(1) |         process.exit(1) | ||||||
|       }) |       }) | ||||||
|     })) |     })) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user