Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
fix(get-port): reject with an actual Error to make Bluebird happy
Browse files Browse the repository at this point in the history
  • Loading branch information
devinus committed Feb 20, 2019
1 parent 3444535 commit 7f4d5b0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/get-port+4.1.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/get-port/index.js b/node_modules/get-port/index.js
index c1d6585..368752b 100644
--- a/node_modules/get-port/index.js
+++ b/node_modules/get-port/index.js
@@ -24,7 +24,7 @@ const getPort = options => {
(seq, port) => seq.catch(
() => isAvailable(Object.assign({}, options, {port}))
),
- Promise.reject()
+ Promise.reject(new Error('unavailable'))
);
};

0 comments on commit 7f4d5b0

Please sign in to comment.