export default class WaterfallError extends Error {
    get results() {
        return this._results;
    }

    set results(results) {
        if (this._results == null) {
            this._results = results;
        }

        return this;
    }

    constructor(...args) {
        super(...args);

        this.name = 'WaterfallError';
        this._results = null;
    }
};
module.exports = function WaterfallError(message, results) {
    Error.captureStackTrace(this, this.constructor);
    this.name = this.constructor.name;
    this.message = message;
    this.results = results;
};

require('util').inherits(module.exports, Error);

Fix WaterfallError to properly extend Error
Fix WaterfallError to properly extend Error
