Skip to content

Commit

Permalink
Log error in update command
Browse files Browse the repository at this point in the history
  • Loading branch information
callingmedic911 committed Jul 1, 2024
1 parent f9ff028 commit 96ab170
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/replayio/src/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { checkForNpmUpdate } from "../utils/initialization/checkForNpmUpdate";
import { checkForRuntimeUpdate } from "../utils/initialization/checkForRuntimeUpdate";
import { promptForNpmUpdate } from "../utils/initialization/promptForNpmUpdate";
import { installLatestRelease } from "../utils/installation/installLatestRelease";
import { logger } from "@replay-cli/shared/logger";

registerCommand("update", {
checkForRuntimeUpdate: false,
Expand Down Expand Up @@ -41,6 +42,7 @@ async function update() {

await exitProcess(0);
} catch (error) {
logger.error("Update:Failed", { error });
console.error(error);

await exitProcess(1);
Expand Down

0 comments on commit 96ab170

Please sign in to comment.