Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

slightly more informative error message

  • Loading branch information...
commit 1cb0d740e6b11d2ad5e490c3a64b834640195879 1 parent 7565006
@mcdonc mcdonc authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 pyramid/paster.py
View
9 pyramid/paster.py
@@ -129,9 +129,12 @@ def command(self, IPShell=_marker):
else:
# warn the user that this isn't actually the Pyramid app
warning = """\n
-WARNING: You have loaded a generic WSGI application, therefore the
-"root" and "registry" are not available. To correct this, run "pshell"
-again and specify the INI section containing your Pyramid application."""
+WARNING: You have loaded a generic WSGI application, therefore the "root",
+"registry", and "settings" global variables are not available. To correct
+this, run "pshell" again and specify the INI section containing your Pyramid
+application. For example, if your app is in the '[app:myapp]' config file
+section, use 'development.ini#myapp' instead of 'development.ini' or
+'development.ini#main'."""
closer = lambda: None
# load the pshell section of the ini file
Please sign in to comment.
Something went wrong with that request. Please try again.