Improve error formatting.