Hi Andy,
On Thu, 27 Feb 2014 11:30:35 -0800, Andy Grover wrote :
One long-standing issue with targetcli is that when giving it single
commands from the command line, it doesn't return a nonzero error
code if there's an error of certain types -- it prints a message, but
a success error code. This makes it hard for targetcli to be
scripted.
[snip]
So, before I go ahead, any objections, or discussion? Speak up, or
I'm going ahead early next week :)
+1. Targetcli should return a status code, otherwise it cannot be
used safely in scripts. What error codes are you going to define?
0: OK
1: Failure
Or
0: OK
1: Minor error
2: Serious error
Or
0: OK
1: Error of some kind
2: Error of another kind
3: Yet another kind of error
Best regards,
--
Christophe Vu-Brugier