From 0eafb262f2be46ee0b864d10c816d6c7ff9f98c3 Mon Sep 17 00:00:00 2001 From: Ashley Gibson Date: Fri, 13 Feb 2026 14:33:27 +0000 Subject: [PATCH] Vary log message based on context --- tasks/lint.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/lint.js b/tasks/lint.js index 02f2856..fda97db 100644 --- a/tasks/lint.js +++ b/tasks/lint.js @@ -132,7 +132,11 @@ async function runESLint(filePatternsOrPaths, options = {}) { if (errorCount > 0 && failOnErrors) { throw new Error(`${taskName} found ${errorCount} error(s) and ${warningCount} warning(s). Build halted due to failOnErrors setting.`); } else if (errorCount > 0) { - log.info(`ℹ ${taskName} found ${errorCount} error(s) and ${warningCount} warning(s), but continuing build. Use --fail-on-lint-errors to halt on errors.`); + if (sake.isBuildTask()) { + log.info(`ℹ ${taskName} found ${errorCount} error(s) and ${warningCount} warning(s), but continuing build. Use --fail-on-lint-errors to halt on errors.`); + } else { + log.info(`ℹ ${taskName} found ${errorCount} error(s) and ${warningCount} warning(s)`); + } } return { errorCount, warningCount, fixableCount };