Page 1 of 1

Batch Error Handling

Posted: Wed Apr 01, 2015 4:13 am
by cferri
TextCrawler is supposed to continue after an error when operating in batch mode. However, when processing single files, this is not the case. If an error is encountered, the program halts displaying the error message, even if the /c option has been chosen. In order to choose files created by date, I have a batch program that first creates a list of files to be processed, then calls TextCrawler for each file in turn. If there is a problem with any file in the list, because TextCrawler halts, the batch program will be prevented from continuing.

Re: Batch Error Handling

Posted: Thu Apr 02, 2015 8:33 am
by cferri
I have done some more testing and found the following :-

TextCrawler continues for errors such as Open File and Read Only but returns a Zero exit code, even if the action fails.
TextCrawler halts with an error message for errors such as File Not Found. If the window is closed, the program exits with a Zero exit code and the batch process continues.

This behaviour is not helpful when running from a batch file. Can you please look at providing useful exit codes for failed actions/errors and at preventing TextCrawler from halting when called from the command line.

Re: Batch Error Handling

Posted: Fri Apr 03, 2015 4:24 pm
by DigitalVolcano
Good point - added to the development list for 3.0.5

Re: Batch Error Handling

Posted: Mon Jun 15, 2015 10:23 am
by DigitalVolcano
Update:
Version 3.0.5 now has exit codes. The halting messages which prevent auto-closing is now fixed as well.

viewtopic.php?f=13&t=1535

http://www.digitalvolcano.co.uk/textcra ... =&sct=MzA4