print the type of sql on the error