Skip to content

Commit

Permalink
fix: fix spinner not being hidden after update
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledosman committed Aug 9, 2019
1 parent b8bc6a4 commit d4ae1b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion commands/generateReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function generateReport (options) {
console.log(`file downloaded at ${fileName}`)
} catch (err) {
spinner.end()
console.log((err.response && err.response.data) || err)
console.log((errorColor(err.response && err.response.data) || err))
}
}

Expand Down
1 change: 0 additions & 1 deletion helpers/spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class Spinner {

update (message) {
this.countdown.message(message)
process.stdout.write('\n')
}

end () {
Expand Down

0 comments on commit d4ae1b1

Please sign in to comment.