Resolved the printing the sql error.