From 6c0fbef843c52b9848a46ec64bc2e6a070294237 Mon Sep 17 00:00:00 2001 From: howie6879 Date: Wed, 24 Jan 2018 08:17:55 +0800 Subject: [PATCH] Add parameter check --- sanic/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sanic/app.py b/sanic/app.py index eefcfc23..a81bb4a8 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -155,7 +155,8 @@ class Sanic: return handler else: raise ValueError( - 'Required parameter `request` missing in the {0}() route?'.format( + 'Required parameter `request` missing' + 'in the {0}() route?'.format( handler.__name__)) return response