summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-10-10 17:54:27 +0200
committerClaude Paroz <claude@2xlibre.net>2012-10-10 17:56:25 +0200
commitdcdaf9a07901c80c0d93663b348595dd2ba7b7a6 (patch)
tree915c7557a9203cf091f3bbfac72f35eeb3cd2b92
parentc99ad64df7f8b7bdf504ef1c329610fce3c7f1b0 (diff)
Fixed error output from runserver
This has been missed in commit 822d6d6dab (Refs #18325).
-rw-r--r--django/core/management/commands/runserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/commands/runserver.py b/django/core/management/commands/runserver.py
index 9c24701d2e..391e0b440a 100644
--- a/django/core/management/commands/runserver.py
+++ b/django/core/management/commands/runserver.py
@@ -123,7 +123,7 @@ class Command(BaseCommand):
error_text = ERRORS[e.args[0].args[0]]
except (AttributeError, KeyError):
error_text = str(e)
- sys.stderr.write("Error: %s" % error_text)
+ self.stderr.write("Error: %s" % error_text)
# Need to use an OS exit because sys.exit doesn't work in a thread
os._exit(1)
except KeyboardInterrupt: