Skip to content

Commit

Permalink
flapper
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Oct 29, 2024
1 parent c5ecb44 commit 3b904ea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions transport-deno/src/deno_transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ export class DenoTransport implements Transport {
this.conn.close();
}
} catch (err) {
const m = (err as Error).name === "ConnectionRefused"
? "connection refused"
: (err as Error).message;
throw new ConnectionError(m, { cause: err });
this.conn?.close();
const _err = err as Error;
throw new ConnectionError(_err.message, { cause: err });
}
}

Expand Down

0 comments on commit 3b904ea

Please sign in to comment.