[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

View File

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