Skip to content

Commit

Permalink
Reword Ruby 2.1 not supported message
Browse files Browse the repository at this point in the history
Message is now going to be

> Could not compile the Datadog Continuous Profiler because
> the profiler only supports Ruby 2.2 or newer.

at installation time, and

> Your ddtrace installation is missing support for the Continuous
> Profiler because the profiler only supports Ruby 2.2 or newer.
  • Loading branch information
ivoanjo committed Jul 11, 2022
1 parent 8bb3718 commit 91eb862
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def self.pkg_config_missing?(command: $PKGCONFIG) # rubocop:disable Style/Global

private_class_method def self.on_ruby_2_1?
ruby_version_not_supported = explain_issue(
'your Ruby version (2.1) is too old to be supported.',
'the profiler only supports Ruby 2.2 or newer.',
suggested: UPGRADE_RUBY,
)

Expand Down
2 changes: 1 addition & 1 deletion spec/datadog/profiling/native_extension_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
context 'when on Ruby 2.1' do
before { stub_const('RUBY_VERSION', '2.1.10') }

it { is_expected.to include '(2.1) is too old' }
it { is_expected.to include 'profiler only supports Ruby 2.2 or newer' }
end
end

Expand Down

0 comments on commit 91eb862

Please sign in to comment.