Skip to content

Commit

Permalink
add channel exception previous
Browse files Browse the repository at this point in the history
  • Loading branch information
PNixx committed Jan 16, 2024
1 parent 09a12d0 commit e717eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ private function throwIfClosed(): void
$this->cancellation()->throwIfRequested();
throw new ChannelException('Channel #' . $this->id . ' was closed, state: ' . $this->state);
} catch (CancelledException $e) {
throw new ChannelException('Channel #' . $this->id . ' was closed, state: ' . $this->state . ', cancelled: ' . $e->getPrevious()?->getMessage());
throw new ChannelException('Channel #' . $this->id . ' was closed, state: ' . $this->state . ', cancelled: ' . $e->getPrevious()?->getMessage(), 0, $e->getPrevious());
}
}
}
Expand Down

0 comments on commit e717eb1

Please sign in to comment.