Fix #623 #630

Merged
merged 1 commit into from Jan 25, 2013
+3 −2
View
5 flask/helpers.py
@@ -247,8 +247,9 @@ def external_url_handler(error, endpoint, **values):
appctx = _app_ctx_stack.top
reqctx = _request_ctx_stack.top
if appctx is None:
- raise RuntimeError('Attempted to generate a URL with the application '
- 'context being pushed. This has to be executed ')
+ raise RuntimeError('Attempted to generate a URL without the '
+ 'application context being pushed. This has to be '
+ 'executed when application context is available.')
# If request specific information is available we have some extra
# features that support "relative" urls.