Reformat of errors