fixed [Object object] error

This commit is contained in:
Your Name
2020-08-17 13:31:49 +01:00
parent 93f0162281
commit 1a681304c2
2 changed files with 2 additions and 1 deletions
Binary file not shown.
+2 -1
View File
@@ -538,7 +538,8 @@ export class AdbClientService {
if (deleteAfter) {
this.appService.fs.unlink(filePath, err => {});
}
let er = e.message ? e.message : e.code ? e.code : e.toString();
console.log(e);
let er = e.message ? e.message : e.code ? e.code : e.reason ? e.reason : JSON.stringify(e);
if (er === 'SAFESIDE') {
this.appService.headerComponent.safeModal.openModal();
}