Skip to content

Commit

Permalink
refactor(cli): optimize error handle
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Dec 30, 2021
1 parent bbd6b59 commit d9d3f7e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/varlet-cli/src/commands/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ async function pushGit(version: string) {
const ret = await execa('git', ['push'])
s.succeed('Push remote repository successfully')

if (ret.stderr) {
throw new Error('\n' + ret.stderr)
} else {
ret.stdout && logger.info(ret.stdout)
}
ret.stdout && logger.info(ret.stdout)
}

type packageJsonMap = {
Expand Down

0 comments on commit d9d3f7e

Please sign in to comment.