Printing Failure Reasons for Failed Query

Printing the error statements in case of query failure in the cli.