simplify error formatting in cli errors