Plugin Directory

Changeset 836785


Ignore:
Timestamp:
01/11/2014 06:34:12 PM (12 years ago)
Author:
divinenephron
Message:

Added a more informative error message when pdflatex and pdftk are not found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • latex-everything/trunk/class-latex-document.php

    r582622 r836785  
    9696        // Find pdflatex
    9797        if ( !$this->pdflatex_path = exec( 'which pdflatex' ) )
    98             return new WP_Error( 'LE_Latex_Document::__construct', 'pdflatex not found' );
     98            return new WP_Error( 'LE_Latex_Document::__construct', 'pdflatex not found. $PATH is ' . getenv('path') );
    9999
    100100        // Generate single latex files for each of a term's posts, because Latex
     
    321321    function typeset_all_files () {
    322322        // Find pdftk
    323         if ( !$this->pdftk_path = exec( 'which pdftk' ) )
    324             return new WP_Error( 'LE_Latex_Term_Document::__construct', 'pdftk not found' );
     323        if ( !$this->pdftk_path = exec( 'which pdftk' ) ) {
     324            return new WP_Error( 'LE_Latex_Term_Document::__construct', 'pdftk not found. $PATH is ' . getenv('path') );
     325        }
    325326
    326327        // Get a temporary filename for the concatenated pdf.
Note: See TracChangeset for help on using the changeset viewer.