Skip to content

Commit 5e17719

Browse files
committed
fix log target names and exit code when build-before-test fails
1 parent ea4ee78 commit 5e17719

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ctest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,9 +1942,11 @@ export class CTestDriver implements vscode.Disposable {
19421942
}
19431943
const buildResult = await project.build(accumulatedTargets, false, false);
19441944
if (buildResult.exitCode !== 0) {
1945+
log.error(localize('build.targets.failed.with.code', 'Building targets [{0}] failed with exit code {1}.', accumulatedTargets.join(', '), buildResult.exitCode));
19451946
success = false;
19461947
}
19471948
} catch (e) {
1949+
log.error(localize('build.targets.threw', 'Building targets [{0}] threw an error: {1}', accumulatedTargets.join(', '), (e as Error)?.message ?? String(e)));
19481950
success = false;
19491951
}
19501952
if (!success) {

0 commit comments

Comments
 (0)