Index: django/core/management.py
===================================================================
--- django/core/management.py	(revision 1883)
+++ django/core/management.py	(working copy)
@@ -521,7 +521,7 @@
     s = StringIO()
     num_errors = get_validation_errors(s)
     if num_errors:
-        sys.stderr.write("Error: %s couldn't be installed, because there were errors in your model:\n" % mod_name)
+        sys.stderr.write("Error: %s couldn't be installed, because there were errors in your model:\n" % app_name)
         s.seek(0)
         sys.stderr.write(s.read())
         sys.exit(1)
