Skip to content

Commit 2b60e98

Browse files
committed
fix new cases of mismatch sub
1 parent e1c75eb commit 2b60e98

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

packages/core/src/awsService/appBuilder/explorer/nodes/deployedNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export async function generateDeployedNode(
153153
}
154154
default:
155155
newDeployedResource = new DeployedResourceNode(deployedResource)
156-
getLogger().info('Details are missing or are incomplete for:', deployedResource)
156+
getLogger().info('Details are missing or are incomplete for: %O', deployedResource)
157157
return [
158158
createPlaceholderItem(
159159
localize('AWS.appBuilder.explorerNode.noApps', '[This resource is not yet supported.]')

packages/core/src/awsService/appBuilder/explorer/samProject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function getStackName(projectRoot: vscode.Uri): Promise<any> {
4242
} catch (error: any) {
4343
switch (error.code) {
4444
case SamConfigErrorCode.samNoConfigFound:
45-
getLogger().info('No stack name or region information available in samconfig.toml', error)
45+
getLogger().info('No stack name or region information available in samconfig.toml: %O', error)
4646
break
4747
case SamConfigErrorCode.samConfigParseError:
4848
getLogger().error(`Error getting stack name or region information: ${error.message}`, error)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export async function validateSQLMetadataFile(fileContents: string, message: any
142142
`CodeTransformation: Parsed .sct file with source DB: ${sourceDB}, target DB: ${targetDB}, source host name: ${sourceServerName}, and schema names: ${Array.from(schemaNames)}`
143143
)
144144
} catch (err: any) {
145-
getLogger().error('CodeTransformation: Error parsing .sct file.', err)
145+
getLogger().error('CodeTransformation: Error parsing .sct file. %O', err)
146146
transformByQState.getChatMessenger()?.sendUnrecoverableErrorResponse('error-parsing-sct-file', message.tabID)
147147
return false
148148
}

packages/core/src/lambda/vue/configEditor/samInvokeBackend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export class SamInvokeWebview extends VueWebview {
269269
selectedFile: this.getFileName(fileLocations[0].fsPath),
270270
}
271271
} catch (e) {
272-
getLogger().error('readFileSync: Failed to read file at path %O', fileLocations[0].fsPath, e)
272+
getLogger().error('readFileSync: Failed to read file at path %s %O', fileLocations[0].fsPath, e)
273273
throw ToolkitError.chain(e, 'Failed to read selected file')
274274
}
275275
}

packages/core/src/lambda/vue/remoteInvoke/invokeLambda.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class RemoteInvokeWebview extends VueWebview {
128128
selectedFile: this.getFileName(fileLocations[0].fsPath),
129129
}
130130
} catch (e) {
131-
getLogger().error('readFileSync: Failed to read file at path %O', fileLocations[0].fsPath, e)
131+
getLogger().error('readFileSync: Failed to read file at path %s %O', fileLocations[0].fsPath, e)
132132
throw ToolkitError.chain(e, 'Failed to read selected file')
133133
}
134134
}
@@ -151,7 +151,7 @@ export class RemoteInvokeWebview extends VueWebview {
151151
selectedFile: this.getFileName(fileLocation.fsPath),
152152
}
153153
} catch (e) {
154-
getLogger().error('readFileSync: Failed to read file at path %O', fileLocation.fsPath, e)
154+
getLogger().error('readFileSync: Failed to read file at path %s %O', fileLocation.fsPath, e)
155155
throw ToolkitError.chain(e, 'Failed to read selected file')
156156
}
157157
}

packages/core/src/shared/env/resolveEnv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ async function doResolveUnixShellEnv(timeout: Timeout): Promise<typeof process.e
298298
getLogger().debug(`getUnixShellEnvironment#result:${env}`)
299299
resolve(env)
300300
} catch (err) {
301-
getLogger().error('getUnixShellEnvironment#errorCaught', err)
301+
getLogger().error('getUnixShellEnvironment#errorCaught %O', err)
302302
reject(err)
303303
}
304304
})

0 commit comments

Comments
 (0)