File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ typedef enum ssh_desktop_launch_error {
20
20
SDLE_CONT_NOT_READY,
21
21
SDLE_JOIN_TO_SWARM_FAILED,
22
22
SDLE_SYSTEM_CALL_FAILED,
23
+ SDLE_NO_KEY_DEPLOYED,
23
24
SDLE_LAST_ERR
24
25
} ssh_desktop_launch_error_t ;
25
26
Original file line number Diff line number Diff line change @@ -355,6 +355,9 @@ ssh_desktop_launch_error_t CHubController::ssh_to_container_internal(const CEnvi
355
355
if (container_status != SDLE_SUCCESS) {
356
356
return container_status;
357
357
}
358
+ if (key.isEmpty ()){
359
+ return SDLE_NO_KEY_DEPLOYED;
360
+ }
358
361
system_call_wrapper_error_t run_in_terminal_status = ssh_to_container_in_terminal (cont, key);
359
362
if (run_in_terminal_status != SCWE_SUCCESS) {
360
363
QString err_msg = tr (" Run SSH failed. Error code : %1" )
@@ -480,8 +483,9 @@ const QString &CHubController::ssh_desktop_launch_err_to_str(int err) {
480
483
" Container not found" ,
481
484
" Container isn't ready" ,
482
485
" Join to p2p swarm failed" ,
483
- " System call failed" };
484
- return lst_err_str[err % SDLE_LAST_ERR];
486
+ " System call failed" ,
487
+ " No key deployed" };
488
+ return lst_err_str[err % SDLE_LAST_ERR];
485
489
}
486
490
487
491
const QString CHubController::get_env_key (const QString &env_id) {
You can’t perform that action at this time.
0 commit comments