Skip to content

Commit f34aa3e

Browse files
authored
refactor(core): fail with message if TLS backend not available (#784)
1 parent 4028856 commit f34aa3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sentry/src/transports/reqwest.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ impl ReqwestHttpTransport {
5353
}
5454
}
5555
};
56-
builder.build().unwrap()
56+
builder
57+
.build()
58+
.expect("Failed to build `reqwest` client as a TLS backend is not available. Enable either the `native-tls` or the `rustls` feature of the `sentry` crate.")
5759
});
5860
let dsn = options.dsn.as_ref().unwrap();
5961
let user_agent = options.user_agent.clone();

0 commit comments

Comments
 (0)