Compositor icon indicating copy to clipboard operation
Compositor copied to clipboard

Improve error reporting

Open ktraunmueller opened this issue 6 years ago • 1 comments

Observed

A

\usepackage{fontspec}

will cause this log output

Package: fontspec 2017/11/09 v2.6g Font selection for XeLaTeX and LuaLaTeX

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! Fatal fontspec error: "cannot-use-pdftex"
! 
! The fontspec package requires either XeTeX or LuaTeX.
! 
! You must change your typesetting engine to, e.g., "xelatex" or
! "lualatex"instead of "latex" or "pdflatex".
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  
                                                  
l.44 \msg_fatal:nn {fontspec} {cannot-use-pdftex}

but Compositor does not report an error in the Messages pane.

Expected

A meaningful error message shows up the Messages pane.

ktraunmueller avatar Nov 08 '18 19:11 ktraunmueller

The fontspec package uses \msg_fatal to issue this error message. No other package (in the core distro) seems to use this error reporting facility, so maybe it's not too important to handle this case (for now).

ktraunmueller avatar Mar 20 '19 23:03 ktraunmueller