Skip to content

Commit

Permalink
fix: fix cli update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Apr 16, 2024
1 parent 3ae7d76 commit cad1307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/cli/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class CliUpdate extends Command {
try {
const verCmd = await this.config.findCommand('cli:version')?.load()
await verCmd?.run([]) // without [] the command uses args of command 'version' and it fails
} catch (err) { this.log() }
} catch (err: any) { this.error(err.message as string) }
}

}

0 comments on commit cad1307

Please sign in to comment.