Skip to content

Commit c562752

Browse files
committed
link error message to style guide
1 parent ac66a0f commit c562752

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/checkFloatingPages.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ async function checkFloatingPages(context, options = {}) {
9494
if (options && options.failBuild) {
9595
console.error('\x1b[31m%s\x1b[0m', `${floatingPages.length} floating pages found:`);
9696
floatingPages.forEach(page => console.error(` - ${page}`));
97-
throw new Error('🚨 Floating pages found. See above for details.');
97+
throw new Error('Error: Found "floating" pages without sidebars. For further details see: https://github.com/ClickHouse/clickhouse-docs/blob/main/contribute/style-guide.md/');
9898
} else {
99-
console.log('⚠️', 'Found floating pages:');
99+
console.log('Warning:', 'Found floating pages:');
100100
floatingPages.forEach(page => console.log(` - ${page}`));
101101
}
102102
} else {
103-
console.log('', 'No floating pages found.');
103+
console.log('Passed:', 'No floating pages found.');
104104
}
105105
}
106106
}

0 commit comments

Comments
 (0)