Edgewall Software
Modify

Opened 14 years ago

Closed 14 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:

Description

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

Eg

$ 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 $?
0

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, 14 years ago

Milestone: 0.9
Priority: normalhigh

comment:2 by Christopher Lenz, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in [2271].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to as closed 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.