mdlavin / nested-error-stacks

A node.js module for creating Error objects with nested Errors in stacktraces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optional Message Param in Constructor

amir-zad-1 opened this issue · comments

Is it possible to make the message param in constructor optional?

var newErr = new NestedError("", err); => var newErr = new NestedError(err);

Your example code seems reasonable to me. I'm surprised that it would fail. Do you want to submit a PR with a fix that works for you?

Thank you for merging the PR. When are you going to release a new version on NPM?

I just published v2.1.0 to NPM with your changes. Thanks for contributing!