Apply suggestion from @mbg

Co-authored-by: Michael B. Gale <mbg@github.com>
This commit is contained in:
Mario Campos
2026-09-21 16:28:52 -05:00
committed by GitHub
parent 771560691a
commit 598cda36cf

View File

@@ -153,7 +153,7 @@ export function addBodyLinesToUnreleasedSection(
const unreleasedSection = changelog.sections[0];
if (getHeader(unreleasedSection) !== UNRELEASED_PLACEHOLDER) {
throw Error("'[UNRELEASED]' is not the first section of 'CHANGELOG.md'");
throw Error(`'${UNRELEASED_PLACEHOLDER}' is not the first section of 'CHANGELOG.md'`);
}
if (unreleasedSection.bodyLines.includes(NO_CHANGES_STR)) {