Prettier error handling