Skip to content

Commit 56490f5

Browse files
committed
chore: log affected changelog file
1 parent a5b6b10 commit 56490f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/validateChangelog.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ function main() {
2020
const type = item.split('-')[0];
2121
if (!ACCEPTABLE_ENTRIES.includes(type))
2222
throw new Error(
23-
'Invalid changelog type, valid types:' + ACCEPTABLE_ENTRIES.join(',')
23+
`Invalid changelog type, valid types: ${ACCEPTABLE_ENTRIES.join(',')}
24+
file: ${item}
25+
`
2426
);
2527
const prNumber = item.split('-')[1].replace('.md', '');
2628
if (prNumber === pullId) idFound = true;

0 commit comments

Comments
 (0)