Skip to content

Commit 073177c

Browse files
committed
Changes to info for no data error
1 parent 866cdb5 commit 073177c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plus/ai/aiProviderService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ export class AIProviderService implements Disposable {
502502
const commit = isCommit(commitOrRevision)
503503
? commitOrRevision
504504
: await this.container.git.commits(commitOrRevision.repoPath).getCommit(commitOrRevision.ref);
505-
if (commit == null) throw new AINoRequestDataError('Unable to find commit');
505+
if (commit == null) throw new AINoRequestDataError('No commit found to explain.');
506506
if (cancellation.isCancellationRequested) throw new CancellationError();
507507

508508
if (!commit.hasFullDetails()) {
@@ -994,7 +994,7 @@ export class AIProviderService implements Disposable {
994994

995995
switch (ex.reason) {
996996
case AIErrorReason.NoRequestData:
997-
void window.showErrorMessage(ex.message);
997+
void window.showInformationMessage(ex.message);
998998
return undefined;
999999

10001000
case AIErrorReason.NoEntitlement: {

0 commit comments

Comments
 (0)