prettier error on exception