Updated the functions that fail to get data from AST nodes, to print those nodes after the error message.