Skip to content
Permalink
Browse files

fix(get-port): reject with an actual Error to make Bluebird happy

  • Loading branch information...
devinus committed Feb 20, 2019
1 parent 3444535 commit 7f4d5b01a01debd5c209303c30ab6a92f52a4aad
Showing with 13 additions and 0 deletions.
  1. +13 −0 patches/get-port+4.1.0.patch
@@ -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.
You can’t perform that action at this time.