This commit is contained in:
parent
34413c7c57
commit
d6a3b831e7
|
@ -166,7 +166,7 @@ class PrintServer {
|
||||||
|
|
||||||
// Print PDF
|
// Print PDF
|
||||||
try {
|
try {
|
||||||
//await pExec(`lp -d "${printer}" "${tmpFilePath}"`);
|
await pExec(`lp -d "${printer}" "${tmpFilePath}"`);
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
await fs.unlink(tmpFilePath);
|
await fs.unlink(tmpFilePath);
|
||||||
throw new Error(`Print error: ${err.message}`);
|
throw new Error(`Print error: ${err.message}`);
|
||||||
|
|
Loading…
Reference in New Issue