Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah committed Nov 3, 2020
1 parent f6f6a0f commit 04e46b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class BuildCommand extends Command {
checkOptions({ cachedConfig, token }) {
const { siteInfo = {} } = JSON.parse(cachedConfig)
if (!siteInfo.id && process.env.NODE_ENV !== 'test') {
this.error('Could not find the site ID. Please run netlify link.')
this.error('Could not find the site ID. Please run netlify link.', { exit: 1 })
}

if (!token) {
this.error('Could not find the access token. Please run netlify login.')
this.error('Could not find the access token. Please run netlify login.', { exit: 1 })
}
}
}
Expand Down

0 comments on commit 04e46b5

Please sign in to comment.