This repository was archived by the owner on Jan 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 4949 "camelcase" : " ^4.1.0" ,
5050 "chalk" : " 2.4.1" ,
5151 "cli-table3" : " ^0.5.1" ,
52- "cli-ux" : " ^5.3.0 " ,
52+ "cli-ux" : " ^5.6.2 " ,
5353 "fs-extra" : " ^5.0.0" ,
5454 "get-stdin" : " ^6.0.0" ,
5555 "https-proxy-agent" : " ^2.2.1" ,
Original file line number Diff line number Diff line change @@ -68,11 +68,15 @@ export default class QnamakerInit extends Command {
6868 }
6969
7070 async updateKbId ( config : any ) {
71- let response = await new Endpointkeys ( ) . getEndpointKeys ( config )
72- config . endpointKey = response . data . primaryEndpointKey
73-
74- response = await new Knowledgebase ( ) . getKnowledgebaseDetails ( config )
75- let kb = await response . data
76- config . hostname = kb . hostName
71+ try {
72+ let response = await new Endpointkeys ( ) . getEndpointKeys ( config )
73+ config . endpointKey = response . data . primaryEndpointKey
74+
75+ response = await new Knowledgebase ( ) . getKnowledgebaseDetails ( config )
76+ let kb = response . data
77+ config . hostname = kb . hostName
78+ } catch ( error ) {
79+ this . error ( `Update of KB endpoint key and hostname failed: ${ error } ` )
80+ }
7781 }
7882}
You can’t perform that action at this time.
0 commit comments