-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Terror.ensureError() looks like a rudimental method. All it does is call to Terror.createError() in case passed error object is not a Terror instance. And the most strange thing here is that it's arguments are swapped if you compare it with createError. Take a look:
Terror.ensureError = function(error, code) {
return /*···*/ this.createError(code, error);
};I propose to deprecate Terror.ensureError() and use Terror.createError() only.
Metadata
Metadata
Assignees
Labels
No labels