Skip to content

Commit dc00a6f

Browse files
committed
Improve error message
1 parent 1847416 commit dc00a6f

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

lib/init-action-post.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init-action-post-helper.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -295,23 +295,20 @@ async function recordOverlayStatus(
295295
"This job attempted to run with improved incremental analysis but it did not complete successfully. " +
296296
"This may have been due to disk space constraints: using improved incremental analysis can " +
297297
"require a significant amount of disk space for some repositories.";
298-
const outro =
299-
"If you want to enable improved incremental analysis, increase the disk space available to the runner. " +
300-
"If that doesn't help, contact GitHub Support for further assistance.";
301298

302299
if (saved) {
303300
logger.error(
304301
`${blurb} ` +
305302
"This failure has been recorded in the Actions cache, so the next CodeQL analysis will run " +
306-
"without improved incremental analysis. " +
307-
`${outro}`,
303+
"without improved incremental analysis. If you want to enable improved incremental analysis, " +
304+
"increase the disk space available to the runner. " +
305+
"If that doesn't help, contact GitHub Support for further assistance.",
308306
);
309307
} else {
310308
logger.error(
311309
`${blurb} ` +
312310
"The attempt to save this failure status to the Actions cache failed. The Action will attempt to " +
313-
"save this failure status again on the next run, so future runs will skip improved incremental analysis. " +
314-
`${outro}`,
311+
"run with improved incremental analysis again.",
315312
);
316313
}
317314
}

0 commit comments

Comments
 (0)