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:
@ -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
|
||||
|
||||
@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user