Skip to content

Commit 7da959f

Browse files
committed
Let the wrapping Promise handle network errors thrown by getUserId
1 parent ba4d59d commit 7da959f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ const connect = options => new Promise((resolve, reject) => {
171171
}
172172

173173
client.connect(connectionOpts);
174-
}, (error) => {
175-
throw new Error(error);
176-
});
174+
}, reject);
177175
});
178176

179177
const disconnect = id => new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)