Skip to content

Commit 99aea12

Browse files
committed
ignore the .exe
1 parent f954ea3 commit 99aea12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub fn sentry_error_reporter(_: &mut App, subscriber: BoxedSubscriber) -> BoxedS
149149

150150
env::args().next().and_then(|file| {
151151
PathBuf::from(file)
152-
.file_name()
152+
.file_stem()
153153
.and_then(|file| file.to_str())
154154
.map(|exe| {
155155
configure_scope(|scope| {
@@ -208,7 +208,7 @@ macro_rules! sentry_reporter {
208208

209209
std::env::args().next().and_then(|file| {
210210
std::path::PathBuf::from(file)
211-
.file_name()
211+
.file_stem()
212212
.and_then(|file| file.to_str())
213213
.map(|exe| {
214214
vleue_sentry::configure_scope(|scope| {

0 commit comments

Comments
 (0)