From 62f0cf0388edfde5d96aec70fe531dc75942bf4e Mon Sep 17 00:00:00 2001 From: lichengyin Date: Tue, 26 Apr 2016 12:12:38 +0800 Subject: [PATCH] Fix a promise was created in a handler but was not returned from it, fix #318 --- src/core/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/app.js b/src/core/app.js index 43e98da3..ac4a3c22 100644 --- a/src/core/app.js +++ b/src/core/app.js @@ -166,7 +166,7 @@ export default class extends think.http.base { execError(err){ let http = this.http; http.error = err; - return think.statusAction(500, http, true); + return think.statusAction(500, http, true).catch(() => {}); } /** * run