mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
don't throw strings
This commit is contained in:
@@ -96,7 +96,7 @@ exp.get_from_options = function(rid, url, options, callback) {
|
||||
case 429:
|
||||
// this shouldn't usually happen, but occasionally does
|
||||
// forcing error so it's not cached
|
||||
error = error || "TooManyRequestsException";
|
||||
error = error || new Error("TooManyRequestsException");
|
||||
break;
|
||||
default:
|
||||
if (!error) {
|
||||
|
||||
Reference in New Issue
Block a user