jbenet/go-ipfs — pull request #360 by maybebtc (2014-11-18 14:24:56+00:00)
Title: fix(2/daemon) init

This PR fixes a bug in the `ipfs2 daemon` command.

Issue: incorrect error displayed when ipfs is uninitialized and `daemon` is executed without `--init` option

Fix: fetch config _before_ acquiring lock so that correct error is displayed

Why this occurred: before, if daemon was executed without config, the `commandDetails` checks would have caught the error. Now that we allow the daemon command without init, we must perform the check in the command itself.

@jbenet