sqlectron-gui
sqlectron-gui copied to clipboard
Expose reason info for SSH errors
I noticed that the reason info is not present in the UI error message when a SSH connection fails, and that field is usually more helpful than the description itself https://github.com/mscdex/ssh2/blob/v0.8.x/lib/client.js#L1206
Printing that info object directly from ssh2 module I could understand better why that was failing:
{
recipient: 0,
reasonCode: 1,
reason: 'ADMINISTRATIVELY_PROHIBITED',
description: 'open failed',
lang: ''
}