While it's too late to change the name "expect", could one create an alias for it and call it say, "on_error"?
foo().pop().expected("foo length >= 1");
and if it fails, the error is something like "panicked at 'expected foo length >= 1'".[1]https://gist.github.com/edmccard/8898dd397eec0ff3595c28ada52...