TEIIDDES-1841 Improve error message for transformation export

Added more detail to the error message, indicating what type of statements were missing or invalid.