Wesley Mason wrote:
> I'd like to know what the status codes are that jpluckc gives to make
> the script more intellegent on error.

Version of JPluck C prior to 0.9 pre2 (which was just released) only
return -1 if there was an error, so there's no real way of determining which
exact error occurred based on the exit code.

However, the next 0.9 prerelease will return dedicated error codes. I've
copied them from the source:

public static final int OK = 0;
public static final int ERROR_UNRECOGNIZED_OPTION = 1;
public static final int ERROR_JXL_NOT_SPECIFIED = 2;
public static final int ERROR_JXL_NOT_FOUND = 3;
public static final int ERROR_SETTINGS_NOT_SPECIFIED = 4;
public static final int ERROR_SETTINGS_NOT_FOUND = 5;

Be sure to check the readme.txt when 0.9 pre3 is released to see if there
were any changes/additions to these codes.

Also, in JPluck 0.9 the term "Device" has been replaced by "Conversion
Settings" and the command-line switches have changed accordingly. Instead
of -device you must specify -settings.


Regards
-Laurens

_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list

Reply via email to