Fix pull request 147 to completely remove error example part when --sample is set to 0.