[IMP]If no server-sided connexion, return error

This commit is contained in:
Fabien BOURGEOIS 2019-06-07 15:36:47 +02:00
parent 9cf314f74b
commit 88256bd83a
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ const execCommand = (cmd, res) => {
std += data;
});
});
} else {
res.end(sendJSON(res, 500, 'Pas de connexion SSH !'));
}
};