diff --git a/package.json b/package.json index 25b54c3..b5a9ae2 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/rdcli.js b/src/rdcli.js index 530fd3e..20579ff 100644 --- a/src/rdcli.js +++ b/src/rdcli.js @@ -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(); } })