print out if there is syntax error or no result found.