Don't raise always when pandoc is missing from PATH

[ci skip]
pull/6619/head
Oliver Günther 6 years ago
parent 51f6ba3b8d
commit dde95f5318
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 6
      lib/open_project/text_formatting/formats/markdown/pandoc_downloader.rb

@ -76,6 +76,12 @@ module OpenProject::TextFormatting::Formats
end end
status.success? && stdout.match(/^pandoc [23]\./i) status.success? && stdout.match(/^pandoc [23]\./i)
rescue StandardError => e
if raise_msg.present?
raise raise_msg
end
false
end end
def forced_pandoc_path def forced_pandoc_path

Loading…
Cancel
Save