Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Fix: throw error instead of calling (undefined) reject
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Jun 22, 2020
1 parent f2cab51 commit 1623466
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/watch.js
Expand Up @@ -8,8 +8,7 @@ const {readJsonFile, rimraf} = require('./utils/fs')

function watch(opts) {
if (!opts.basedir) {
reject(new Error('Missing basedir'))
return
throw new Error('Missing basedir')
}

const templateDir = path.resolve(opts.basedir, 'template')
Expand Down

0 comments on commit 1623466

Please sign in to comment.