delorie.com/archives/browse.cgi | search |
On Sat, Jul 28, 2012 at 07:46:23AM -0700, Edward Comer wrote: > I wrote a shell script that causes pcb to export gerbers and I wanted to test for success/failure but I find that pcb returns 0 even upon failure. > This bugs me too. The problem is that pcb basically looks at the -x parameter to check which exporter to use, hands off to the exporter (through the do_export() function), and calls it a day. When the exporter finishes, it returns 0. If the exporter fails, it will abort early, but it has no way to tell the main program that there was a problem. The solution would be to change the HID interface so that do_export returns an error code. -- Andrew Poelstra Email: asp11 at sfu.ca OR apoelstra at wpsoftware.net Web: http://www.wpsoftware.net/andrew "You shouldn't trust every quote you read on the Internet." -- Socrates
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |