summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Gautier <superbaloo+registrations.github@superbaloo.net>2012-07-09 20:49:59 +0300
committerBryan McLellan <btm@opscode.com>2012-08-03 11:57:55 -0700
commit9c9842dc0b339efd8dca62485fe5b4408592c5e3 (patch)
tree2e30a5cec403e1b2311decf9391fffdef1979dd0
parentcb141217d977afe74d0bda4ffec8e4aff80f28e8 (diff)
downloadchef-9c9842dc0b339efd8dca62485fe5b4408592c5e3.tar.gz
Make it fallback to plainfile
-rw-r--r--chef-server-webui/app/controllers/cookbooks.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/chef-server-webui/app/controllers/cookbooks.rb b/chef-server-webui/app/controllers/cookbooks.rb
index 499084cbde..1c915241da 100644
--- a/chef-server-webui/app/controllers/cookbooks.rb
+++ b/chef-server-webui/app/controllers/cookbooks.rb
@@ -155,6 +155,7 @@ class Cookbooks < Application
syntax_highlight(url)
rescue
Chef::Log.error("Error while parsing file #{url}")
+ show_plain_file(url)
end
end
end