Permalink
Browse files

slightly more informative error message

  • Loading branch information...
1 parent 7565006 commit 1cb0d740e6b11d2ad5e490c3a64b834640195879 @mcdonc mcdonc committed Jul 10, 2011
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

0 comments on commit 1cb0d74

Please sign in to comment.