summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2016-03-05 21:19:16 -0800
committerTim Smith <tsmith84@gmail.com>2016-03-05 21:21:39 -0800
commit7e334f961c951c3df84cb24feb98b22607355bc0 (patch)
tree422f322d63bb3ce50d1cb49e59b0cd8bd23924ae
parentfc687aabc64b844e2e68f23a21ecdb8176bc975e (diff)
downloadchef-7e334f961c951c3df84cb24feb98b22607355bc0.tar.gz
Provide a docs link for the first error every knife user gets
This one confused me the first time I used Chef and judging by the number of questions / views on stack overflow I'm not the only person. Lets just link to the docs here so people can quickly figure out what needs to be set and how.
-rw-r--r--lib/chef/knife/edit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/edit.rb b/lib/chef/knife/edit.rb
index 5275f3c59b..8489e4e179 100644
--- a/lib/chef/knife/edit.rb
+++ b/lib/chef/knife/edit.rb
@@ -58,7 +58,7 @@ class Chef
# Let the user edit the temporary file
if !system("#{config[:editor]} #{file.path}")
- raise "Please set EDITOR environment variable"
+ raise "Please set EDITOR environment variable. See https://docs.chef.io/knife_using.html for details."
end
result_text = IO.read(file.path)