Edgewall Software

Opened 17 years ago

Closed 17 years ago

#1960 closed defect (fixed)

trac-admin doesn't return a non zero return code on error

Reported by: ncw@… Owned by: daniel
Priority: high Milestone: 0.9
Component: admin/console Version: 0.8.4
Severity: major Keywords: return code rc
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


trac-admin doesn't return a non zero result code on error.


$ trac-admin /path/to/nowhere wiki dump WikiDump
Failed to open environment. [Errno 2] No such file or directory: '/path/to/nowhere/VERSION'
Wiki dump failed: 1
$ echo $?

This makes scripting trac-admin very difficult as its impossible to know when it has failed

Attachments (0)

Change History (2)

comment:1 by Jonas Borgström, 17 years ago

Milestone: 0.9
Priority: normalhigh

comment:2 by Christopher Lenz, 17 years ago

Resolution: fixed
Status: newclosed

Fixed in [2271].

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.