1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-10-24 15:12:55 +08:00

fix(fsrepo): use "please run ipfs init" message

This commit is contained in:
Brian Tiger Chow
2015-01-12 18:41:41 -08:00
parent e84fc5df22
commit 631d2154f2
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ func (r *FSRepo) Open() error {
return debugerror.Errorf("repo is %s", r.state)
}
if !IsInitialized(r.path) {
return debugerror.New("repo is not initialized")
return debugerror.New("ipfs not initialized, please run 'ipfs init'")
}
// check repo path, then check all constituent parts.
// TODO acquire repo lock

View File

@ -10,7 +10,7 @@ test_description="Test user-provided config values"
test_init_ipfs
test_expect_success "bootstrap doesn't overwrite user-provided, top-level keys" '
test_expect_success "bootstrap doesn't overwrite user-provided config keys (top-level)" '
ipfs config Foo.Bar baz &&
ipfs bootstrap rm --all &&
echo "baz" >expected &&