huge rewrite

This commit is contained in:
2026-10-29 22:19:03 -07:00
parent 25358e9c17
commit e738ea158b
29 changed files with 2237 additions and 2060 deletions

View File

@@ -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;