fix error formatting