From 4775d6f45765394c3b05ae7fc0768728702a2817 Mon Sep 17 00:00:00 2001 From: qiwen li Date: Wed, 29 Nov 2023 12:15:37 -0500 Subject: [PATCH] added error Signed-off-by: qiwen li --- src/dev/generate_release_note.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dev/generate_release_note.ts b/src/dev/generate_release_note.ts index 0d0d7b06f945..b002711f151e 100644 --- a/src/dev/generate_release_note.ts +++ b/src/dev/generate_release_note.ts @@ -29,9 +29,7 @@ function addContentAfterUnreleased(path: string, newContent: string): void { newContent + fileContent.slice(endOfLineIndex + 1); } else { - // eslint-disable-next-line no-console - console.warn('End of line for "Unreleased" section not found.'); - return; + throw new Error('End of line for "Unreleased" section not found.'); } } else { throw new Error("'## [Unreleased]' not found in the file.");