Skip to content

Commit

Permalink
fix(lockfile): throw errors coming from the exec-server
Browse files Browse the repository at this point in the history
  • Loading branch information
Realtin committed Jul 1, 2019
1 parent eef362f commit 1829317
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/lockfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ async function getNewLockfile ({ packageJson, lock, type, repositoryTokens }) {
})
.then(result => {
jobCountByServer[nextServer]--
return result
if (result instanceof Error) {
// it is an error!
const error = result
throw error
} else {
return result
}
})
.catch(error => {
if (number >= 3) {
Expand Down

0 comments on commit 1829317

Please sign in to comment.