Opened 16 years ago
Closed 14 years ago
#10849 closed Uncategorized (duplicate)
management loaddata: bad syntax not reported, results in successful return code
Reported by: | Phil Mocek | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.0 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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
Change History (3)
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
comment:3 by , 14 years ago
Resolution: | → duplicate |
---|---|
Severity: | → Normal |
Status: | new → closed |
Type: | → Uncategorized |
Dupe of #10200.
Note:
See TracTickets
for help on using tickets.
I think this could be closed. It is already fixed (tried 1.2, trunk).