added error message if surface is not water-tight