Commit f5d5095b authored by rht's avatar rht

Add newline to 'ipfs init' error message

parent 17d71c49
......@@ -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
'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment