Make resolvers able to process error messages, allows nicer messages from toBeA()