Use -1 for progress to indicate an error

This commit is contained in:
Johannes Zellner
2015-07-29 13:53:16 +02:00
parent 2dd6bb0c67
commit 4f129102a8
2 changed files with 3 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ var progress = {
backup: null
};
// We use -1 for percentage to indicate errors
function set(tag, percent, message) {
assert(tag === exports.UPDATE || tag === exports.BACKUP);
assert.strictEqual(typeof percent, 'number');