New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: add #catch() #15

Open
stephenmathieson opened this Issue Dec 18, 2014 · 10 comments

Comments

Projects
None yet

@stephenmathieson stephenmathieson changed the title from fea to feature request: add #catch() Dec 18, 2014

@oppenlander

This comment has been minimized.

Show comment
Hide comment
@oppenlander

oppenlander commented Apr 8, 2015

👍

@tamtakoe

This comment has been minimized.

Show comment
Hide comment
@tamtakoe

tamtakoe commented Apr 27, 2015

+1

@Jokero

This comment has been minimized.

Show comment
Hide comment
@Jokero

Jokero commented Apr 27, 2015

+1

@kbjr

This comment has been minimized.

Show comment
Hide comment
@kbjr

kbjr commented May 25, 2015

+1

@amitport

This comment has been minimized.

Show comment
Hide comment
@amitport

amitport commented May 29, 2015

👍

@heycalmdown

This comment has been minimized.

Show comment
Hide comment
@heycalmdown

heycalmdown commented Jun 2, 2015

+1

@hustKiwi

This comment has been minimized.

Show comment
Hide comment
@hustKiwi

hustKiwi commented Jun 3, 2015

+1

@jonjaques

This comment has been minimized.

Show comment
Hide comment
@jonjaques

jonjaques Jun 12, 2015

+1, would you accept a PR for this?

jonjaques commented Jun 12, 2015

+1, would you accept a PR for this?

@iansinnott

This comment has been minimized.

Show comment
Hide comment
@iansinnott

iansinnott Aug 1, 2015

For anyone still running into this issue, here's a related issue and workaround.

Basically you can just add catch to Mpromise directly when you initialize your db connection:

var mpromise = require('mongoose/node_modules/mpromise');

mpromise.prototype.catch = function(onReject) {
  return this.then(undefined, onReject);
};

iansinnott commented Aug 1, 2015

For anyone still running into this issue, here's a related issue and workaround.

Basically you can just add catch to Mpromise directly when you initialize your db connection:

var mpromise = require('mongoose/node_modules/mpromise');

mpromise.prototype.catch = function(onReject) {
  return this.then(undefined, onReject);
};
@refack

This comment has been minimized.

Show comment
Hide comment
@refack

refack Aug 15, 2015

Collaborator

Hello all,
For now we have .end()

Collaborator

refack commented Aug 15, 2015

Hello all,
For now we have .end()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment