diff --git a/lib/open_project/text_formatting/formats/markdown/pandoc_downloader.rb b/lib/open_project/text_formatting/formats/markdown/pandoc_downloader.rb index 19c6555de8..cc56a9ef21 100644 --- a/lib/open_project/text_formatting/formats/markdown/pandoc_downloader.rb +++ b/lib/open_project/text_formatting/formats/markdown/pandoc_downloader.rb @@ -76,6 +76,12 @@ module OpenProject::TextFormatting::Formats end status.success? && stdout.match(/^pandoc [23]\./i) + rescue StandardError => e + if raise_msg.present? + raise raise_msg + end + + false end def forced_pandoc_path