mirror of
				https://github.com/KevinMidboe/moviedb.git
				synced 2025-10-29 17:50:25 +00:00 
			
		
		
		
	Throw error on bad apikey request.
This commit is contained in:
		| @@ -40,8 +40,8 @@ MovieDB.prototype.requestToken = function(fn){ | |||||||
|     if(res.ok) self.token = res.body; |     if(res.ok) self.token = res.body; | ||||||
|     else throw res.error; |     else throw res.error; | ||||||
|     fn(); |     fn(); | ||||||
|   }).on('error', function(){ |   }).on('error', function(error){ | ||||||
|     throw res.error; |     throw error; | ||||||
|   }); |   }); | ||||||
|  |  | ||||||
|   return this; |   return this; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user