Skip to content

Commit a391f69

Browse files
committed
start migration
1 parent 13b1a09 commit a391f69

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

packages/core/src/awsService/iot/commands/createCert.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ async function saveCredentials(
115115
const publicKeyExists = await fileExists(publicKeyPath)
116116

117117
if (certExists) {
118-
getLogger().error('Certificate path {0} already exists', certPath)
118+
getLogger().error('Certificate path %s already exists', certPath)
119119
void vscode.window.showErrorMessage(
120120
localize('AWS.iot.createCert.error', 'Failed to create certificate. Path {0} already exists.', certPath)
121121
)
122122
return false
123123
}
124124
if (privateKeyExists) {
125-
getLogger().error('Key path {0} already exists', privateKeyPath)
125+
getLogger().error('Key path %s already exists', privateKeyPath)
126126
void vscode.window.showErrorMessage(
127127
localize(
128128
'AWS.iot.createCert.error',
@@ -133,7 +133,7 @@ async function saveCredentials(
133133
return false
134134
}
135135
if (publicKeyExists) {
136-
getLogger().error('Key path {0} already exists', publicKeyPath)
136+
getLogger().error('Key path %s already exists', publicKeyPath)
137137
void vscode.window.showErrorMessage(
138138
localize(
139139
'AWS.iot.createCert.error',

packages/core/src/awsService/redshift/explorer/redshiftNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class RedshiftNode extends AWSTreeNodeBase implements LoadMoreNode {
127127
newServerlessToken = response.nextToken ?? ''
128128
}
129129
} catch (error) {
130-
getLogger().error("Serverless workgroup operation isn't supported or failed:", error)
130+
getLogger().error("Serverless workgroup operation isn't supported or failed: %O", error)
131131
// Continue without interrupting the provisioned cluster loading
132132
}
133133
}

packages/core/src/awsService/s3/commands/uploadFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ export async function promptUserForBucket(
415415
try {
416416
allBuckets = await s3client.listAllBuckets()
417417
} catch (e) {
418-
getLogger().error('Failed to list buckets from client', e)
418+
getLogger().error('Failed to list buckets from client %O', e)
419419
void vscode.window.showErrorMessage(
420420
localize('AWS.message.error.promptUserForBucket.listBuckets', 'Failed to list buckets from client')
421421
)

packages/core/src/codewhisperer/activation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,6 @@ export async function enableDefaultConfigCloud9() {
618618
await editorSettings.update('acceptSuggestionOnEnter', 'on', vscode.ConfigurationTarget.Global)
619619
await editorSettings.update('snippetSuggestions', 'top', vscode.ConfigurationTarget.Global)
620620
} catch (error) {
621-
getLogger().error('amazonq: Failed to update user settings', error)
621+
getLogger().error('amazonq: Failed to update user settings %O', error)
622622
}
623623
}

packages/core/src/codewhisperer/client/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ export function initializeNetworkAgent(): void {
8282
}
8383
} catch (error) {
8484
// Log any errors in the patching logic
85-
getLogger().error('Failed to patch http agent', error)
85+
getLogger().error('Failed to patch http agent %O', error)
8686
}
8787
}

packages/core/src/codewhisperer/commands/startSecurityScan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export async function startSecurityScan(
225225

226226
logger.verbose(`Security scan completed.`)
227227
} catch (error) {
228-
getLogger().error('Security scan failed.', error)
228+
getLogger().error('Security scan failed. %O', error)
229229
if (error instanceof CodeScanStoppedError) {
230230
codeScanTelemetryEntry.result = 'Cancelled'
231231
} else {

packages/core/src/shared/sam/activation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ async function activateCodeLensRegistry(context: ExtContext) {
188188
getIdeProperties().codelenses
189189
)
190190
)
191-
getLogger().error('Failed to activate codelens registry', e)
191+
getLogger().error('Failed to activate codelens registry %O', e)
192192
// This prevents us from breaking for any reason later if it fails to load. Since
193193
// Noop watcher is always empty, we will get back empty arrays with no issues.
194194
globals.codelensRootRegistry = new NoopWatcher() as unknown as CodelensRootRegistry

plugins/eslint-plugin-aws-toolkits/lib/rules/no-string-sub-mismatch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function countSubTokens(literalNode: TSESTree.StringLiteral) {
1818
* Allows us to avoid copy pasting message into test file.
1919
*/
2020
export function formErrorMsg(substitutionTokens: string | number, numArgs: string | number): string {
21-
return `String substitution has ${substitutionTokens} substitution tokens, but ${numArgs} arguments.`
21+
return `String substitution has ${substitutionTokens} format specifiers, but ${numArgs} arguments.`
2222
}
2323

2424
export default ESLintUtils.RuleCreator.withoutDocs({

0 commit comments

Comments
 (0)