Skip to content

Commit

Permalink
fix: sometimes check if error is SshnpError before treating it like one
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierChanth committed Dec 9, 2023
1 parent 540e4a5 commit 95e7f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sshnoports/bin/sshnp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void main(List<String> args) async {
sshClient:
SupportedSshClient.fromString(argResults['ssh-client'] as String),
).catchError((e) {
if (e.stackTrace != null) {
if (e is SshnpError && e.stackTrace != null) {
Error.throwWithStackTrace(e, e.stackTrace!);
}
throw e;
Expand Down

0 comments on commit 95e7f14

Please sign in to comment.