Skip to content

Commit

Permalink
Merge pull request #382 from fishshi/fix/add_onError_to_GithubService
Browse files Browse the repository at this point in the history
Add onError to GithubService
  • Loading branch information
rjmacarthy authored Nov 11, 2024
2 parents 7aa83c2 + de7671d commit b0ea71d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/extension/review-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,15 @@ export class GithubService extends ConversationHistory {
})
this._completion = ""
},
onError: (error: Error) => {
this.webView?.postMessage({
type: EVENT_NAME.twinnyOnEnd,
value: {
error: true,
errorMessage: error.message,
},
} as ServerMessage)
}
})
} catch (e) {
return reject(e)
Expand Down

0 comments on commit b0ea71d

Please sign in to comment.