mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-31 19:27:00 -06:00
SEARCH-197
- Error handling
This commit is contained in:
parent
71449f96dc
commit
9a72c18064
@ -47,7 +47,9 @@ class Crypto {
|
||||
return;
|
||||
}
|
||||
|
||||
log.send(logLevels.WARN, 'compression stderr, ' + response.stderr);
|
||||
if (response && response.stderr) {
|
||||
log.send(logLevels.WARN, 'compression stderr, ' + response.stderr);
|
||||
}
|
||||
const input = fs.createReadStream(`${this.dump}/${this.permanentIndexFolderName}.tar.lz4`);
|
||||
const outputEncryption = fs.createWriteStream(this.encryptedIndex);
|
||||
let config = {
|
||||
@ -107,7 +109,9 @@ class Crypto {
|
||||
// no return, need to unlink if error
|
||||
}
|
||||
|
||||
log.send(logLevels.WARN, 'deCompression stderr, ' + response.stderr);
|
||||
if (response && response.stderr) {
|
||||
log.send(logLevels.WARN, 'deCompression stderr, ' + response.stderr);
|
||||
}
|
||||
fs.unlink(`${this.dump}/decrypted.tar.lz4`, () => {
|
||||
resolve('success');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user