@@ -23,14 +23,14 @@ import {
2323 ToolkitError ,
2424 getRequestId ,
2525 getTelemetryReason ,
26+ getTelemetryReasonDesc ,
2627 getTelemetryResult ,
2728 isClientFault ,
2829 isNetworkError ,
29- resolveErrorMessageToDisplay ,
3030} from '../../shared/errors'
3131import { getLogger } from '../../shared/logger'
3232import { AwsLoginWithBrowser , AwsRefreshCredentials , Metric , telemetry } from '../../shared/telemetry/telemetry'
33- import { indent , toBase64URL , truncate } from '../../shared/utilities/textUtilities'
33+ import { indent , toBase64URL } from '../../shared/utilities/textUtilities'
3434import { AuthSSOServer } from './server'
3535import { CancellationError , sleep } from '../../shared/utilities/timeoutUtils'
3636import { getIdeProperties , isCloud9 } from '../../shared/extensionUtilities'
@@ -153,7 +153,7 @@ export abstract class SsoAccessTokenProvider {
153153 telemetry . aws_refreshCredentials . emit ( {
154154 result : getTelemetryResult ( err ) ,
155155 reason : getTelemetryReason ( err ) ,
156- reasonDesc : truncate ( resolveErrorMessageToDisplay ( err , '' ) , 200 , '' ) ,
156+ reasonDesc : getTelemetryReasonDesc ( err ) ,
157157 requestId : getRequestId ( err ) ,
158158 ...metric ,
159159 } as AwsRefreshCredentials )
0 commit comments