catch one more rate limit type
This commit is contained in:
parent
45a6526d9a
commit
47749df94e
@ -416,6 +416,13 @@ impl OpenRequestHandle {
|
||||
ResponseType::Error
|
||||
}
|
||||
}
|
||||
-32005 => {
|
||||
if error.message == "rate limit exceeded" {
|
||||
ResponseType::RateLimited
|
||||
} else {
|
||||
ResponseType::Error
|
||||
}
|
||||
}
|
||||
-32601 => {
|
||||
let error_msg = error.message.as_ref();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user