mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
make pdflatex just quite for invalid input
This commit is contained in:
@@ -20,7 +20,7 @@ function copyToTemp(texDocument, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function generateDoc(docPath, callback) {
|
function generateDoc(docPath, callback) {
|
||||||
const pdflatex = spawn('pdflatex', [docPath, '-halt-on-error'], {cwd: path.dirname(docPath)});
|
const pdflatex = spawn('pdflatex', [docPath, '-interaction', 'nonstopmode'], {cwd: path.dirname(docPath)});
|
||||||
pdflatex.stderr.on('data', (data) => {
|
pdflatex.stderr.on('data', (data) => {
|
||||||
console.error('onData', data);
|
console.error('onData', data);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user