Update src/app/window-handler.ts

Co-Authored-By: mattias-symphony <57355424+mattias-symphony@users.noreply.github.com>
This commit is contained in:
Johan Kwarnmark 2020-03-02 14:46:49 +01:00 committed by GitHub
parent 6a82154818
commit 890268f9d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -928,7 +928,9 @@ export class WindowHandler {
logger.info(`window handler: execCmd: util: ${util} utilArgs: ${utilArgs}`);
return new Promise<ChildProcess>((resolve, reject) => {
return execFile(util, utilArgs, (error: ExecException | null) => {
logger.info(`window handler: execCmd: error: ${error}`);
if (error) {
logger.info(`window handler: execCmd: error: ${error}`);
}
if (error && error.killed) {
// processs was killed, just resolve with no data.
return reject(error);