Skip to content

Commit

Permalink
fix: fix wrong debug log
Browse files Browse the repository at this point in the history
* Only log mkcertPath does not exist error when missing

* fix: fix typo

Co-authored-by: liuwei <[email protected]>
  • Loading branch information
jeremycook and liuweiGL authored Aug 6, 2021
1 parent 48aac09 commit 510d381
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/plugin/src/mkcert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,13 @@ class Mkcert {
let exist: boolean
if (this.mkcertLocalPath) {
exist = await exists(this.mkcertLocalPath)
this.logger.error(
chalk.red(
`${this.mkcertLocalPath} does not exist, please check the mkcertPath paramter`
if (!exist) {
this.logger.error(
chalk.red(
`${this.mkcertLocalPath} does not exist, please check the mkcertPath parameter`
)
)
)
}
} else {
exist = await exists(this.mkcertSavedPath)
}
Expand Down

0 comments on commit 510d381

Please sign in to comment.