Skip to content

Commit 0bcc241

Browse files
committed
Add missing outputOptimizeResult
1 parent 1542800 commit 0bcc241

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/commands/optimize/handle-optimize.mts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,18 @@ export async function handleOptimize({
4747

4848
const { agent, agentVersion } = pkgEnvDetails
4949
if (agent === VLT) {
50-
return {
51-
ok: false,
52-
message: 'Unsupported',
53-
cause: cmdPrefixMessage(
54-
CMD_NAME,
55-
`${agent} v${agentVersion} does not support overrides. Soon, though ⚡`,
56-
),
57-
}
50+
await outputOptimizeResult(
51+
{
52+
ok: false,
53+
message: 'Unsupported',
54+
cause: cmdPrefixMessage(
55+
CMD_NAME,
56+
`${agent} v${agentVersion} does not support overrides. Soon, though ⚡`,
57+
),
58+
},
59+
outputKind,
60+
)
61+
return
5862
}
5963

6064
logger.info(`Optimizing packages for ${agent} v${agentVersion}.\n`)

0 commit comments

Comments
 (0)