#2515 closed defect (worksforme)
trac-admin should return nonzero if the command fails
Reported by: | Owned by: | daniel | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | admin/console | Version: | 0.9.2 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It would be helpful for trac-admin to return a nonzero value if the command fails (as in when invoked from the command line, not interactively). This would make it easier to write scripts that can determine right then and there whether the command succeeded.
Maybe I'm just slow, but my backup scripts are parsing the output, which incidentally changed for the hotcopy command since 0.8, leading to a little frustration on my part. This kind of thing could be avoided if I could glean some meaning from the return value of trac-admin.
I was going to add this as a comment to #2162 since they are outwardly similar, but I imagine it's an entirely different issue internally, hence a new ticket.
Attachments (1)
Change History (4)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
trac-admin
does return non-zero values when it's exiting with an error. If there's a specific error that you're encountering that did not return a non-zero value please reopen this ticket with more information so that we can identify it.
by , 19 years ago
comment:3 by , 19 years ago
You're right, it was fixed. I hadn't tested adequately since I upgraded from 0.8. My b.
This seems to be a dup of #1960 for 0.9.2 (regression ?)