Skip to content

Commit 36646f1

Browse files
authored
Merge pull request #416 from Rawk/win-stop-on-err
Skip remaining iterations on Windows too
2 parents bd79123 + 24931d6 commit 36646f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

samply/src/windows/profiler.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ pub fn start_recording(
110110
// give us a chance to stop xperf.
111111
let exit_status = child.wait().unwrap();
112112
if !exit_status.success() {
113-
eprintln!("Child process exited with {:?}", exit_status);
113+
eprintln!(
114+
"Skipping remaining iterations due to non-success exit status: \"{}\"",
115+
exit_status
116+
);
117+
break;
114118
}
115119
}
116120

0 commit comments

Comments
 (0)