diff --git a/plugins/pygments_code.rb b/plugins/pygments_code.rb index c0f4de9220f..9a7d9d20f32 100644 --- a/plugins/pygments_code.rb +++ b/plugins/pygments_code.rb @@ -24,7 +24,7 @@ def self.pygments(code, lang) begin highlighted_code = Pygments.highlight(code, :lexer => lang, :formatter => 'html', :options => {:encoding => 'utf-8', :startinline => true}) rescue MentosError - raise "Pygments can't parse unknown language: #{lang}." + raise "Pygments can't parse unknown language: #{lang}#{code}." end File.open(path, 'w') {|f| f.print(highlighted_code) } end