When your foreign policy is being praised by terrorists, you might want to rethink it.