File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
packages/core/src/amazonqGumby Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ import {
4040 JavaHomeNotSetError ,
4141 JobStartError ,
4242 ModuleUploadError ,
43- NoAuthError ,
4443 NoJavaProjectsFoundError ,
4544 NoMavenJavaProjectsFoundError ,
4645 NoOpenProjectsError ,
@@ -62,6 +61,7 @@ import DependencyVersions from '../../models/dependencies'
6261import { getStringHash } from '../../../shared/utilities/textUtilities'
6362import { getVersionData } from '../../../codewhisperer/service/transformByQ/transformMavenHandler'
6463import AdmZip from 'adm-zip'
64+ import { AuthError } from '../../../auth/sso/server'
6565
6666// These events can be interactions within the chat,
6767// or elsewhere in the IDE
@@ -238,7 +238,7 @@ export class GumbyController {
238238 if ( authState . amazonQ !== 'connected' ) {
239239 this . sessionStorage . getSession ( ) . isAuthenticating = true
240240 await this . messenger . sendAuthNeededExceptionMessage ( authState , message . tabID )
241- throw new NoAuthError ( )
241+ throw new AuthError ( 'Not connected to Amazon Q' , `AuthState= ${ authState . amazonQ } ` )
242242 }
243243 this . messenger . sendTransformationIntroduction ( message . tabID )
244244 } )
Original file line number Diff line number Diff line change @@ -12,12 +12,6 @@ export class JavaHomeNotSetError extends ToolkitError {
1212 }
1313}
1414
15- export class NoAuthError extends ToolkitError {
16- constructor ( ) {
17- super ( 'Not authenticated' , { code : 'AuthFailed' } )
18- }
19- }
20-
2115export class NoOpenProjectsError extends ToolkitError {
2216 constructor ( ) {
2317 super ( 'No Java projects found since no projects are open' , { code : 'NoOpenProjects' } )
You can’t perform that action at this time.
0 commit comments