Branch: refs/heads/master
  Home:   https://github.com/conformal/btcd
  Commit: f1cbd40713aba693678ab61149647e68b71384fe
      
https://github.com/conformal/btcd/commit/f1cbd40713aba693678ab61149647e68b71384fe
  Author: Dave Collins <[email protected]>
  Date:   2014-12-21 (Sun, 21 Dec 2014)

  Changed paths:
    M config.go

  Log Message:
  -----------
  Improve handling of the home directory creation.

This commit improves a couple of issues surrounding the creation of the
btcd home directory.

First, the code was previously attempting to log any errors that occurred
while creating the directory using the logging system which is not
initialized at that point.  Thus, nothing was displayed to the user.

Second, if any component of btcd home directory path already exists, but
is not a directory, such as in the case of symlinks, the error returned
from the os.MkDirAll call indicates the directory can't be created.  While
this is true, it's not always the most helpful error to display to the
user.  So, this commit adds logic to detect when the failure case is due
to an existing symlink and displays a nicer error message suggesting the
user check if the destination of the link is mounted.

Fixes #193.


Reply via email to