Skip to content

Commit

Permalink
Enclosed fail flags in detection logs in quotes for improved readabil…
Browse files Browse the repository at this point in the history
…ity ↞ [auto-sync from `adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Sep 15, 2024
1 parent 41b80bf commit eaa15e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions greasemonkey/bravegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.9.14.5
// @version 2024.9.14.6
// @license MIT
// @icon https://media.bravegpt.com/images/icons/bravegpt/icon48.png?0a9e287
// @icon64 https://media.bravegpt.com/images/icons/bravegpt/icon64.png?0a9e287
Expand Down Expand Up @@ -3086,7 +3086,7 @@
const failMatch = failFlagsAndURLs.exec(textToShow)
if (failMatch) {
log.debug('Response text', textToShow)
log.error('Fail flag detected', failMatch[0])
log.error('Fail flag detected', `'${failMatch[0]}'`)
if (caller.status !== 'done' && !caller.sender) api.tryNew(caller)
return
} else if (caller.status != 'done') { // app waiting or sending
Expand Down Expand Up @@ -3121,7 +3121,7 @@
const failMatch = failFlagsAndURLs.exec(resp.response)
if (failMatch) { // suggest proxy or try diff API
log.debug('Response text', resp.response)
log.error('Fail flag detected', failMatch[0])
log.error('Fail flag detected', `'${failMatch[0]}'`)
if (caller == get.reply) appAlert('openAInotWorking', 'suggestProxy')
else api.tryNew(caller)
} else {
Expand Down Expand Up @@ -3168,7 +3168,7 @@
const failMatch = failFlagsAndURLs.exec(respText)
if (failMatch) {
log.debug('Response text', respText)
log.error('Fail flag detected', failMatch[0])
log.error('Fail flag detected', `'${failMatch[0]}'`)
api.tryNew(caller)
} else {
log.debug('Response text', respText)
Expand Down

0 comments on commit eaa15e1

Please sign in to comment.