https://bugzilla.wikimedia.org/show_bug.cgi?id=46374

--- Comment #6 from Sam Reed (reedy) <[email protected]> ---
        $cmd = wfEscapeShellArg( $wgScoreLilyPond )
            . ' ' . wfEscapeShellArg( '-dsafe=#t' )
            . ' -dbackend=eps --png --header=texidoc '
            . wfEscapeShellArg( $factoryLy )
            . ' 2>&1';
        $output = wfShellExec( $cmd, $rc2 );
        $rc = chdir( $oldcwd );
        if ( !$rc ) {
            throw new ScoreException( wfMessage( 'score-chdirerr', $oldcwd ) );
        }
        if ( $rc2 != 0 ) {
            self::throwCallException( wfMessage( 'score-compilererr' ),
$output, $options );
        }


I guess giving the return code could be helpful. And even an error message..

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to