Skip to content
Browse files

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 99a7554 commit 47cc60d94b6f96ae939b7325be793d8a2cf8f31d @adrianholovaty adrianholovaty committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/bin/
6 django/bin/
@@ -41,7 +41,7 @@ def print_usage_and_exit(self):
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))
def main():
@@ -60,9 +60,9 @@ def main():
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':
elif action in ('startapp', 'startproject'):

0 comments on commit 47cc60d

Please sign in to comment.
Something went wrong with that request. Please try again.