Skip to content

Commit

Permalink
fix: Correctly mark UpnpError source
Browse files Browse the repository at this point in the history
This annotation was simply missed out. Without it, the root cause for
IGD errors are not visible.
  • Loading branch information
Chris Connelly authored and oetyng committed Aug 31, 2021
1 parent b501805 commit 728d6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,4 +459,4 @@ pub struct UnsupportedStreamOperation(Box<dyn std::error::Error + Send + Sync>);
#[cfg(not(feature = "no-igd"))]
#[derive(Debug, Error)]
#[error("Failed to establish UPnP port forwarding")]
pub struct UpnpError(IgdError);
pub struct UpnpError(#[source] IgdError);

0 comments on commit 728d6b4

Please sign in to comment.