From b4c332104a8b3748f619de250f77c0acc8e80628 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Mon, 15 Jan 2024 16:26:11 -0500 Subject: [PATCH] Use top-level `warn` in JS errors check (#28745) --- spec/support/javascript_errors.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/javascript_errors.rb b/spec/support/javascript_errors.rb index bdce1cc76db..a36bf6017e3 100644 --- a/spec/support/javascript_errors.rb +++ b/spec/support/javascript_errors.rb @@ -9,8 +9,8 @@ RSpec.configure do |config| expect(error.level).to_not eq('SEVERE'), error.message next unless error.level == 'WARNING' - $stderr.warn 'WARN: javascript warning' - $stderr.warn error.message + warn 'WARN: javascript warning' + warn error.message end end end