Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
fix #14 ユーザーファイルビルド時にエラーが発生した場合、エラーメッセージが表示されない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yogarasu committed Aug 19, 2022
1 parent fc5049b commit 62ff0f9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions command/build/user.mts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ interface Options {

// ユーザーファイルを作成する
spinner.loading("Build user file")
try {
await buildUser(srcUserFilePath, distUserFilePath)
} catch (error) {
spinner.failed(null, error)
const buildUserResult = await buildUser(srcUserFilePath, distUserFilePath)
if (buildUserResult.status === "failed") {
spinner.failed(null, buildUserResult.message)
process.exit(0)
}
spinner.success()
Expand Down

0 comments on commit 62ff0f9

Please sign in to comment.