Skip to content

Commit 602b259

Browse files
authored
Merge pull request #4846 from DataDog/fix-fix-error-handler
Fix expect_in_fork error reporter
2 parents e6cfd4b + 1630224 commit 602b259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/support/synchronization_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def expect_in_fork(fork_expectations: nil, timeout_seconds: 10)
3939
stdout ||= File.read(fork_stdout.path)
4040
stderr ||= File.read(fork_stderr.path)
4141

42-
raise "Failure or timeout during `expect_in_fork`, STDOUT: `#{stdout}`, STDERR: `#{stderr}`", e
42+
raise "Failure or timeout in `expect_in_fork`, STDOUT: `#{stdout}`, STDERR: `#{stderr}`", cause: e
4343
ensure
4444
Process.kill('KILL', pid) rescue nil # Prevent zombie processes on failure
4545

0 commit comments

Comments
 (0)