Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan4253 committed Jan 15, 2024
2 parents 5d44c71 + 07f335a commit ed2cf56
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions App/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,19 @@ const runIPC = () => {
child.stderr.on('data', function(data : string) {
console.log('stderr: ' + data);

if(!data.includes('chromedriver')){
event.sender.send('translationProcess', data);
if(data.includes('chromedriver') || data.includes('argparse')){
console.log("HI")
return;
}

const directoryError: string = 'NotADirectoryError';

if(data.indexOf(directoryError) !== -1){
event.sender.send('translationProcess', data.substring(data.indexOf(directoryError)));
return;
}

event.sender.send('translationProcess', data);
});

child.on('close', function() {
Expand Down

0 comments on commit ed2cf56

Please sign in to comment.