lib/metanorma/compile.rb in metanorma-1.2.3 vs lib/metanorma/compile.rb in metanorma-1.2.4
- old
+ new
@@ -259,10 +259,11 @@
@processor.use_presentation_xml(ext) ?
@processor.output(nil, presentationxml_name, outfilename, ext, isodoc_options) :
@processor.output(isodoc, xml_name, outfilename, ext, isodoc_options)
rescue StandardError => e
puts e.message
+ puts e.backtrace.join("\n")
end
end
wrap_html(options, file_extension, outfilename)
end
end
@@ -295,12 +296,11 @@
Util.log("[fontist] Processing will continue without fonts installed", :debug)
else
Util.log("[fontist] Aborting without proper fonts installed," \
" make sure that you have set option --agree-to-terms", :fatal)
end
- rescue Fontist::Errors::MissingFontError => e
- font = /Font '([^']+)'/.match(e.to_s)[1]
- Util.log("[fontist] '#{font}' font is not supported. " \
+ rescue Fontist::Errors::FontError => e
+ Util.log("[fontist] '#{e.font}' font is not supported. " \
"Please report this issue at github.com/metanorma/metanorma-#{@processor.short}/issues" \
" to report this issue.", :info)
rescue Fontist::Errors::FormulaIndexNotFoundError
Util.log("[fontist] Missing formula index. Fetching it...", :debug)
Fontist::Formula.update_formulas_repo