[Hat] Pattern match errors in do?