From 897ad7aca8b02624a27f6895c1e32908cc1c063f Mon Sep 17 00:00:00 2001 From: Xiang Gao Date: Sun, 24 Jan 2016 12:35:03 +0800 Subject: [PATCH] fix the error message --- lib/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/application.js b/lib/application.js index 56cea8f..ddd50d2 100644 --- a/lib/application.js +++ b/lib/application.js @@ -100,7 +100,7 @@ module.exports = class Application extends Emitter { use(fn) { if (typeof fn !== 'function') throw new TypeError('middleware must be a function!'); - if (isGeneratorFunction(fn)) throw new TypeError('Support for generators has been removed. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa#example-with-old-signature'); + if (isGeneratorFunction(fn)) throw new TypeError('Support for generators has been removed. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/tree/v2.x#old-signature-middleware-v1x'); debug('use %s', fn._name || fn.name || '-'); this.middleware.push(fn); return this;