#10849: management loaddata: bad syntax not reported, results in successful return code -----------------------------+---------------------------------------------- Reporter: pmocek | Owner: nobody Status: new | Milestone: Component: django-admin.py | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | -----------------------------+---------------------------------------------- When bad syntax is used with the loaddata command of the auto-generated manage.py, no error is printed at verbosity levels 0 and 1, and manage.py's return code indicates success.
The built-in usage help indicates that the fixture argument is mandatory: {{{ Usage: manage.py loaddata [options] fixture [fixture ...] }}} However, when no fixture is specified, the return code from manage.py indicates success, and an error message is printed only at verbosity level 2: {{{ $ ./manage.py loaddata ; echo $? 0 $ ./manage.py loaddata --verbosity=1 ; echo $? 0 $ ./manage.py loaddata --verbosity=2 ; echo $? No fixtures found. 0 }}} -- Ticket URL: <http://code.djangoproject.com/ticket/10849> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---