This repository was archived by the owner on Jan 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const getUserConfig = async () => {
5050 userConfig . telemetry = false
5151 console . log ( chalk . blue ( 'Telemetry will remain disabled' ) )
5252 console . log ( chalk . blue ( 'At any time you may enable data collection by changing the configuration using command:' ) )
53- console . log ( chalk . blue ( 'bf config:telemetry: enable' ) )
53+ console . log ( chalk . blue ( 'bf config:set:telemetry -- enable' ) )
5454 }
5555
5656 await fs . mkdirp ( pathToConfigJson )
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ const hook: Hook<'init'> = async function (opts) {
7878 userConfig . telemetry = false
7979 this . log ( chalk . blue ( 'Telemetry will remain disabled' ) )
8080 this . log ( chalk . blue ( 'At any time you may enable data collection by changing the configuration using command:' ) )
81- this . log ( chalk . blue ( 'bf config:telemetry: enable' ) )
81+ this . log ( chalk . blue ( 'bf config:set:telemetry -- enable' ) )
8282 }
8383
8484 await writeUserConfig ( userConfig )
Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ module.exports = {
5353 } else {
5454 root = QnAJSON . qnaList ;
5555 }
56+
57+ if ( ! root ) {
58+ throw ( new exception ( retCode . errorCode . INVALID_INPUT_FILE , 'No input QnA content found ' ) ) ;
59+ }
60+
5661 if ( root . length > 0 ) {
5762 root . forEach ( function ( qnaItem ) {
5863 fileContent += '> Source: ' + qnaItem . source + NEWLINE ;
You can’t perform that action at this time.
0 commit comments