Improve error messages to do with time pattern matching.