We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f22570a + 6a234db commit 787ad3eCopy full SHA for 787ad3e
packages/dart/sshnoports/bin/npt.dart
@@ -340,6 +340,18 @@ void main(List<String> args) async {
340
if (!keepAlive) {
341
throw SshnpError(e.toString());
342
}
343
+ } on SshnpError catch (e) {
344
+ logProgress(e.toString());
345
+ await npt.close();
346
+ if (!keepAlive) {
347
+ rethrow;
348
+ }
349
+ } catch (e) {
350
351
352
353
354
355
356
357
await npt.done;
0 commit comments