This commit is contained in:
Markus Unterwaditzer 2012-11-08 20:57:17 +01:00
parent ff2e8449ff
commit 2b30900e2c

View file

@ -247,8 +247,9 @@ def url_for(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.