next up previous contents FITSIO Home
Next: 9.6 Examples Up: 9. Template Files Previous: 9.4 Formal Template Syntax   Contents

9.5 Errors

In general the fits_execute_template() function tries to be as atomic as possible, so either everything is done or nothing is done. If an error occurs during parsing of the template, fits_execute_template() will (try to) delete the top level BLOCK (with all its children if any) in which the error occurred, then it will stop reading the template file and it will return with an error.