Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
refactor: clean up
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
Alan Shaw committed Feb 5, 2019
1 parent 76a6930 commit 540a77d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/cli/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@ async function main (args) {
debug(err)

// the argument can have a different shape depending on where the error came from
if (err.message) {
print(err.message)
} else if (err.error && err.error.message) {
print(err.error.message)
if (err.message || (err.error && err.error.message)) {
print(err.message || err.error.message)
} else {
print('Unknown error, please re-run the command with DEBUG=ipfs:cli to see debug output')
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = {
print('Daemon is ready')

const cleanup = async () => {
print(`Received interrupt signal, shutting down..`)
print(`Received interrupt signal, shutting down...`)
await api.stop()
process.exit(0)
}
Expand Down

0 comments on commit 540a77d

Please sign in to comment.