Skip to content

Commit ebd8dd9

Browse files
committed
ci: improve error message in validation script
The error message now will contain the changes.
1 parent e4ec03b commit ebd8dd9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/validate.mts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ import validateUserAnalytics from './validate-user-analytics.mjs';
1313
export default async function (options: { verbose: boolean }) {
1414
let error = false;
1515

16-
if (execSync(`git status --porcelain`).toString()) {
17-
console.error('There are local changes.');
16+
const changes = execSync(`git status --porcelain`).toString();
17+
if (changes) {
18+
console.error('There are local changes. See below:');
19+
console.error(changes);
1820
if (!options.verbose) {
1921
return 101;
2022
}

0 commit comments

Comments
 (0)