Skip to content

Commit 1d05b5a

Browse files
committed
Minor fixes
1 parent ba771da commit 1d05b5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/codewhisperer/service/transformByQ/transformationHistoryHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export async function copyArtifacts(pathToArchiveDir: string, pathToDestinationD
134134
getLogger().error('Code Transformation: Error saving local copy of artifacts: %s', (error as Error).message)
135135
}
136136

137-
const buildLogsPath = path.join(summaryPath, 'buildCommandOutput.log')
137+
const buildLogsPath = path.join(path.dirname(summaryPath), 'buildCommandOutput.log')
138138
try {
139139
await fs.copy(buildLogsPath, path.join(pathToDestinationDir, 'summary', 'buildCommandOutput.log'))
140140
} catch (error) {
@@ -248,7 +248,7 @@ export async function refreshJob(jobId: string, currentStatus: string, projectNa
248248
getLogger().error('Code Transformation: Error fetching status (job id: %s): %s', jobId, errorMessage)
249249
if (errorMessage.includes('not authorized to make this call')) {
250250
// job not available on backend
251-
status = 'FAILED'
251+
status = 'FAILED' // won't allow retries for this job
252252
} else {
253253
// some other error (e.g. network error)
254254
return

0 commit comments

Comments
 (0)