Skip to content

Commit 4496016

Browse files
committed
Cleanup logging of fix and reach
1 parent e1a4e11 commit 4496016

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/commands/fix/handle-fix.mts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ export async function handleFix(
4242
// Lazily access constants.spinner.
4343
const { spinner } = constants
4444

45-
spinner.start()
46-
spinner.info('Fetching GHSA IDs...')
45+
spinner.start('Fetching GHSA IDs...')
4746

4847
if (ghsasCount === 1 && ghsas[0] === 'auto') {
4948
const autoCResult = await spawnCoana(
@@ -83,11 +82,12 @@ export async function handleFix(
8382
return
8483
}
8584

85+
spinner.infoAndStop('No GHSA IDs found.')
86+
8687
await outputFixResult(
8788
{
88-
ok: false,
89-
message: 'No GHSA IDs found.',
90-
cause: `No GHSA IDs found for project path: ${cwd}`,
89+
ok: true,
90+
data: ''
9191
},
9292
outputKind,
9393
)

src/commands/scan/handle-reach-scan.mts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ export async function handleScanReach(
1414
// Lazily access constants.spinner.
1515
const { spinner } = constants
1616

17-
spinner.start()
18-
spinner.info('Running reachability scan...')
17+
spinner.start('Running reachability scan...')
1918

2019
const result = await spawnCoana(
2120
[

0 commit comments

Comments
 (0)