Skip to content

Commit 9fc1817

Browse files
committed
Improve formatting for unused snippets
1 parent 7c51a33 commit 9fc1817

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/api-documenter/src/yaml/OfficeYamlDocumenter.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22
// See LICENSE in the project root for license information.
33

4+
import * as colors from 'colors';
45
import * as fsx from 'fs-extra';
56
import * as path from 'path';
67
import yaml = require('js-yaml');
@@ -38,8 +39,9 @@ export class OfficeYamlDocumenter extends YamlDocumenter {
3839
super.generateFiles(outputFolder);
3940

4041
// After we generate everything, check for any unused snippets
42+
console.log();
4143
for (const apiName of Object.keys(this._snippets)) {
42-
console.error('UNUSED SNIPPET: ' + apiName);
44+
console.error(colors.yellow('Warning: Unused snippet ' + apiName));
4345
}
4446
}
4547

0 commit comments

Comments
 (0)