summaryrefslogtreecommitdiff
path: root/lib/chef/environment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/environment.rb')
-rw-r--r--lib/chef/environment.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/environment.rb b/lib/chef/environment.rb
index bd966e9b57..7e1c583fa3 100644
--- a/lib/chef/environment.rb
+++ b/lib/chef/environment.rb
@@ -25,6 +25,7 @@ require_relative "mixin/params_validate"
require_relative "mixin/from_file"
require_relative "version_constraint"
require_relative "server_api"
+require_relative "../dist"
class Chef
class Environment
@@ -306,7 +307,7 @@ class Chef
def self.validate_cookbook_version(version)
if Chef::Config[:solo_legacy_mode]
raise Chef::Exceptions::IllegalVersionConstraint,
- "Environment cookbook version constraints not allowed in chef-solo"
+ "Environment cookbook version constraints not allowed in #{Chef::Dist::SOLO}"
else
Chef::VersionConstraint.new version
true