mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-15 06:37:21 -05:00
huge rewrite
This commit is contained in:
@@ -141,7 +141,7 @@ class UpdateClient {
|
||||
file.close(() => {
|
||||
if (totalSize && downloadedSize < totalSize) {
|
||||
fs.unlink(destPath, () => { });
|
||||
reject(new Error(`Download truncated: Received ${downloadedSize} of ${totalSize} bytes. Connection dropped prematurely.`));
|
||||
reject(new Error(`Download truncated: Received ${downloadedSize} of ${totalSize} bytes.`));
|
||||
} else {
|
||||
resolve();
|
||||
}
|
||||
@@ -279,4 +279,4 @@ class UpdateClient {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = UpdateClient;
|
||||
module.exports = UpdateClient;
|
||||
|
||||
Reference in New Issue
Block a user