Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed small bug in print_error() calls in django-admin

git-svn-id: http://code.djangoproject.com/svn/django/trunk@252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 47cc60d94b6f96ae939b7325be793d8a2cf8f31d 1 parent 99a7554
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/bin/django-admin.py
View
6 django/bin/django-admin.py
@@ -41,7 +41,7 @@ def print_usage_and_exit(self):
sys.exit(1)
def print_error(msg, cmd):
- sys.stderr.write("Error: %s\nRun %s --help for help." % (msg, cmd))
+ sys.stderr.write('Error: %s\nRun "%s --help" for help.\n' % (msg, cmd))
sys.exit(1)
def main():
@@ -60,9 +60,9 @@ def main():
try:
action = args[0]
except IndexError:
- print_error("An 'action' is required.")
+ print_error("An action is required.", sys.argv[0])
if not ACTION_MAPPING.has_key(action):
- print_error("Your 'action' was invalid.")
+ print_error("Your action, %r, was invalid." % action, sys.argv[0])
if action == 'init':
ACTION_MAPPING[action]()
elif action in ('startapp', 'startproject'):
Please sign in to comment.
Something went wrong with that request. Please try again.