catch generate errors, duh
This commit is contained in:
		
							parent
							
								
									bb272a9689
								
							
						
					
					
						commit
						7a1df742aa
					
				| @ -22,6 +22,9 @@ if (-1 !== [ 'jwk', 'pem', 'json', 'der', 'pkcs1', 'pkcs8', 'spki' ].indexOf(inf | |||||||
|   }).then(function (key) { |   }).then(function (key) { | ||||||
|     console.log(key.private); |     console.log(key.private); | ||||||
|     console.log(key.public); |     console.log(key.public); | ||||||
|  |   }).catch(function (err) { | ||||||
|  |     console.error(err); | ||||||
|  |     process.exit(1); | ||||||
|   }); |   }); | ||||||
|   return; |   return; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user