Fix formatting errors in error handling.