anchor.diff:          total: coverage.total,
         );
       } else {
  -      if (abortLog == null && dartdocResult != null) {
  -        abortLog =
  +      if (dartdocResult.wasTimeout) {
  +        abortMessage ??= '`dartdoc` timed out.';
  +      }
  +      if (abortMessage == null && dartdocResult != null) {
  +        final output =
               _mergeOutput(dartdocResult.processResult, compressStdout: true);
  -      }
  -      abortLog ??= '';
  -      documentationSection = dartdocFailedSection(dartdocResult);
  +        abortMessage = '`dartdoc` failed with:\n\n```\n$output\n```';
  +      }
  +      abortMessage ??= '`dartdoc` failed with unknown reason.';
  +      documentationSection = _dartdocFailedSection(abortMessage);
       }
       await _storeScoreCard(
           job,
  
positive.code: 
            // Resolve dependencies only for non-legacy package versions.
            if (!packageStatus.isLegacy) {
              depsResolved = await _resolveDependencies(
                  logger, toolEnv, job, pkgPath, usesFlutter, logFileOutput);
            } else {
              logFileOutput.write(
                  'Package version does not allow current SDK, skipping pub upgrade.\n\n');
  
negative.code:       if (isLatestStable) {
          reportIssueWithLatest(job, '$e\n$st');
        }
        abortMessage ??=
            'Running `dartdoc` failed with the following error: `$e`\n\n```\n$st\n```\n';
      } finally {
        await tempDir.delete(recursive: true);
      }
  