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 Jan 31, 2019
1 parent 05ed837 commit ea339df
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 @@ -60,7 +60,7 @@ module.exports = {
print('Daemon is ready')

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

0 comments on commit ea339df

Please sign in to comment.