a nice formatter for errors