Permalink
Browse files

Fixed error output from runserver

This has been missed in commit 822d6d6 (Refs #18325).
  • Loading branch information...
1 parent c99ad64 commit dcdaf9a07901c80c0d93663b348595dd2ba7b7a6 @claudep claudep committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/management/commands/runserver.py
@@ -123,7 +123,7 @@ def inner_run(self, *args, **options):
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:

0 comments on commit dcdaf9a

Please sign in to comment.