Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
fix: keep original error when parse fails
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsadhu committed Mar 23, 2018
1 parent 285c4f4 commit 6c05887
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,10 @@ module.exports = class Client {
this.publicFeedUrl = parsedBody.publicFeedUrl;
this.publicBundleUrl = parsedBody.publicBundleUrl;
} catch (err) {
throw new Boom(
'Unable to perform client/server sync as server returned an unparsable response'
);
throw Boom.boomify(err, {
message:
'Unable to perform client/server sync as server returned an unparsable response',
});
}
}
}
Expand Down

0 comments on commit 6c05887

Please sign in to comment.