@@ -323,56 +323,56 @@ export class IotDevice extends BaseTreeItem {
323323 //GetIp
324324 result = await networkHelper . GetIpAddress ( sshconfig . host ?? "non" ) ;
325325 if ( result . Status == StatusResult . Error ) {
326- result . Message = ` ${ result . Message } \n` +
326+ result . AddMessage (
327327 `Checklist:\n` +
328328 `❌ IP-Address defined;\n` +
329329 `❌ Host availability. Command: "ping";\n` +
330330 `❌ Port 22 availability;\n` +
331331 `❌ Authorization via ssh protocol.\n` +
332- `${ trubleshootingText } ` ;
332+ `${ trubleshootingText } ` ) ;
333333 return Promise . resolve ( result ) ; }
334334 const ipAddress = < string > result . returnObject ;
335335 //Ping
336336 result = await networkHelper . PingHost ( ipAddress ) ;
337337 if ( result . Status == StatusResult . Error ) {
338- result . Message = ` ${ result . Message } \n` +
338+ result . AddMessage (
339339 `Checklist:\n` +
340340 `✔️ IP-Address defined;\n` +
341341 `❌ Host availability. Command: "ping";\n` +
342342 `❌ Port 22 availability;\n` +
343343 `❌ Authorization via ssh protocol.\n` +
344- `${ trubleshootingText } ` ;
344+ `${ trubleshootingText } ` ) ;
345345 return Promise . resolve ( result ) ; }
346346 //Check port
347347 result = await networkHelper . CheckTcpPortUsed ( ipAddress , sshconfig . port ?? 22 ) ;
348348 if ( result . Status == StatusResult . Error ) {
349- result . Message = ` ${ result . Message } \n` +
349+ result . AddMessage (
350350 `Checklist:\n` +
351351 `✔️ IP-Address defined;\n` +
352352 `✔️ Host availability. Command: "ping";\n` +
353353 `❌ Port 22 availability;\n` +
354354 `❌ Authorization via ssh protocol.\n` +
355- `${ trubleshootingText } ` ;
355+ `${ trubleshootingText } ` ) ;
356356 return Promise . resolve ( result ) ; }
357357 //Check ssh connection
358358 result = await this . Client . GetSshConnection ( sshconfig ) ;
359359 if ( result . Status == StatusResult . Error ) {
360360 //Error
361- result . Message = ` ${ result . Message } \n` +
361+ result . AddMessage (
362362 `Checklist:\n` +
363363 `✔️ IP-Address defined;\n` +
364364 `✔️ Host availability. Command: "ping";\n` +
365365 `✔️ Port 22 availability;\n` +
366366 `❌ Authorization via ssh protocol.\n` +
367- `${ trubleshootingText } ` ;
367+ `${ trubleshootingText } ` ) ;
368368 } else {
369369 //OK
370- result . Message = ` ${ result . Message } \n` +
370+ result . AddMessage (
371371 `Checklist:\n` +
372372 `✔️ IP-Address defined;\n` +
373373 `✔️ Host availability. Command: "ping";\n` +
374374 `✔️ Port 22 availability;\n` +
375- `✔️ Authorization via ssh protocol.` ;
375+ `✔️ Authorization via ssh protocol.` ) ;
376376 }
377377 return Promise . resolve ( result ) ;
378378 }
0 commit comments