mirror of
https://github.com/stablyai/orca.git
synced 2026-09-30 00:03:15 +00:00
style(cli): restore prettier wrapping on install error copy
This commit is contained in:
@@ -33,7 +33,9 @@ export class CliCommandInstallation extends CliCommandInspection {
|
||||
|
||||
const inspected = await this.inspectStableSymlink(commandPath, launcherPath)
|
||||
if (inspected.status.state === 'conflict') {
|
||||
throw new Error(`Refusing to replace non-Orca command at ${commandPath}. Remove it and register again if it is no longer needed.`)
|
||||
throw new Error(
|
||||
`Refusing to replace non-Orca command at ${commandPath}. Remove it and register again if it is no longer needed.`
|
||||
)
|
||||
}
|
||||
if (inspected.status.state === 'installed') {
|
||||
return
|
||||
@@ -52,7 +54,9 @@ export class CliCommandInstallation extends CliCommandInspection {
|
||||
|
||||
if (!(await capturedExpectedEntry(quarantine, inspected))) {
|
||||
await this.restoreQuarantinedCommand(quarantine, commandPath)
|
||||
throw new Error(`Refusing to replace non-Orca command at ${commandPath}. Remove it and register again if it is no longer needed.`)
|
||||
throw new Error(
|
||||
`Refusing to replace non-Orca command at ${commandPath}. Remove it and register again if it is no longer needed.`
|
||||
)
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user