Properly formatted the exception error logging. TODO: will need to proporgate this similarly to other error logs as well.