Browse Source

add TooManyRequestsException to silent_errors

jomo 9 năm trước cách đây
mục cha
commit
06895cdd81
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/response.js

+ 1 - 1
lib/response.js

@@ -13,7 +13,7 @@ var human_status = {
 
 
 // print these, but without stacktrace
-var silent_errors = ["ETIMEDOUT", "ESOCKETTIMEDOUT", "ECONNRESET", "EHOSTUNREACH", "ECONNREFUSED"];
+var silent_errors = ["ETIMEDOUT", "ESOCKETTIMEDOUT", "ECONNRESET", "EHOSTUNREACH", "ECONNREFUSED", "TooManyRequestsException"];
 
 // handles HTTP responses
 // +request+ a http.IncomingMessage