More sensible error for nonsmooth functions after failure of sampleTest.
More sensible error for nonsmooth functions after failure of sampleTest.

alshedivat/chebfun,asgeirbirkis/chebfun,ilovejs/chebfun