'use strict';

var createErrorClass = require('create-error-class');

/* eslint-disable no-invalid-this */
module.exports = createErrorClass('MissingMiddleware', function (name) {
	this.message = name + '\n';
	this.message += '\tAdd it before using this middleware: app.use(require(\'' + name + '\')());\n';
	this.message += '\tOr read documentation at http://npmjs.com/' + name;
});

@@ -173,16 +173,82 @@
 name) %7B%0A
+%09if (!name) %7B%0A%09%09throw new Error('name argument is required');%0A%09%7D%0A%0A
 %09this.me

Add name argument validation