Skip to content

Commit

Permalink
added error
Browse files Browse the repository at this point in the history
Signed-off-by: qiwen li <[email protected]>
  • Loading branch information
MadaniKK committed Nov 29, 2023
1 parent f65ba39 commit 4775d6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dev/generate_release_note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 4775d6f

Please sign in to comment.