Skip to content

Commit

Permalink
fix: error trap
Browse files Browse the repository at this point in the history
  • Loading branch information
sukbearai committed Jan 6, 2025
1 parent a32784a commit daa633d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/twitter/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class TwitterManager {
return content
} catch (error) {
consola.error(`Error handling Twitter list ${listId}:`, error)
return ''
return 'error'
}
}

Expand All @@ -217,7 +217,7 @@ export class TwitterManager {
return content
} catch (error) {
consola.error(`Error searching Twitter for ${keyword}:`, error)
return ''
return 'error'
}
}

Expand All @@ -241,7 +241,7 @@ export class TwitterManager {
return content
} catch (error) {
consola.error(`Error handling Twitter KOL ${kol}:`, error)
return ''
return 'error'
}
}

Expand All @@ -264,7 +264,7 @@ export class TwitterManager {
return summarizeResult
} catch (error) {
consola.error(`Error AI summarizing tweets from ${fileUrl}:`, error)
return ''
return 'error'
}
}

Expand Down

0 comments on commit daa633d

Please sign in to comment.