[improved] error formatting