Permalink
Browse files

Merge pull request #630 from untitaker/doc_fix_appctx

Fix #623
  • Loading branch information...
2 parents 1e14783 + 2b30900 commit 777c0c56b5768582eb57607846a945f94c37e154 @kennethreitz kennethreitz committed Jan 25, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 flask/helpers.py
View
@@ -252,8 +252,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.

0 comments on commit 777c0c5

Please sign in to comment.