mirror of
https://github.com/ipfs/kubo.git
synced 2025-10-25 10:27:01 +08:00
Add newline to 'ipfs init' error message
This commit is contained in:
@ -52,7 +52,7 @@ type NoRepoError struct {
|
||||
var _ error = NoRepoError{}
|
||||
|
||||
func (err NoRepoError) Error() string {
|
||||
return fmt.Sprintf("no ipfs repo found in %s. please run: ipfs init", err.Path)
|
||||
return fmt.Sprintf("no ipfs repo found in %s.\nplease run: ipfs init", err.Path)
|
||||
}
|
||||
|
||||
const (
|
||||
|
||||
@ -32,7 +32,8 @@ test_expect_success "ipfs cat fails" '
|
||||
'
|
||||
|
||||
test_expect_success "ipfs cat no repo message looks good" '
|
||||
echo "Error: no ipfs repo found in $IPFS_PATH. please run: ipfs init" > cat_fail_exp &&
|
||||
echo "Error: no ipfs repo found in $IPFS_PATH." > cat_fail_exp &&
|
||||
echo "please run: ipfs init" >> cat_fail_exp &&
|
||||
test_cmp cat_fail_exp cat_fail_out
|
||||
'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user