Merge pull request #139 from waylaidwanderer/fix/remove-unnecessary-console-logging

pull/133/head^2
Travis Fischer 2022-12-14 16:12:40 -06:00 zatwierdzone przez GitHub
commit f2a0e61d9a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -231,14 +231,12 @@ async function checkForChatGPTAtCapacity(page: Page) {
try {
res = await page.$('[role="alert"]')
console.log('capacity text', res)
} catch (err) {
// ignore errors likely due to navigation
console.warn(err.toString())
}
if (res) {
const error = new types.ChatGPTError('ChatGPT is at capacity')
const error = new types.ChatGPTError(`ChatGPT is at capacity: ${res}`)
error.statusCode = 503
throw error
}