Commit 0a69b379 authored by mercury233's avatar mercury233

notify extract tarProcess fail

parent ceed0dda
......@@ -1018,6 +1018,11 @@ export class AppsService {
const line = input.split(' ', 2).pop();
observer.next(line);
});
tarProcess.on('error', (e) => {
console.log(e);
new Notification('MyCard', {body: '解压失败' + e.message});
observer.error(e.message);
});
tarProcess.on('exit', (code) => {
if (code === 0) {
observer.complete();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment