Skip to content

Commit

Permalink
Update ora
Browse files Browse the repository at this point in the history
  • Loading branch information
stoneo committed Apr 22, 2017
1 parent 6fc1f98 commit 3b661b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"debug": "^2.6.3",
"fs": "^0.0.2",
"humanize": "^0.0.9",
"ora": "^1.1.0",
"ora": "^1.2.0",
"request": "^2.81.0",
"request-progress": "^3.0.0",
"request-promise": "^4.2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/rdcli.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ program
spinner.text = `Download: ${res.percent}% Speed: ${res.mbps} ${res.bytesWriting}/${res.totalSize} Remaining: ${res.remaining}sec`; // eslint-disable-line max-len
} else if (res === 'end') {
spinner.stop();
console.log('File downloaded.');
spinner.succeed('File downloaded.');
} else {
spinner.stop();
console.log(`Error: ${res}`);
}
});
} catch (e) {
console.error(`\n${chalk.red(e)}`);
console.error(`${chalk.red(e)}`);
process.exit();
}
})
Expand Down

0 comments on commit 3b661b6

Please sign in to comment.