next up previous contents FITSIO Home
Next: 11.6 Examples Up: 11. Template Files Previous: 11.4 Formal Template Syntax

11.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.