Skip to content

Commit

Permalink
Add newline to 'ipfs init' error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rht committed May 30, 2015
1 parent 17d71c4 commit a17e702
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion repo/fsrepo/fsrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion test/sharness/t0020-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ 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 &&
printf "Error: no ipfs repo found in $IPFS_PATH.\\nplease run: ipfs init" > cat_fail_exp &&
test_cmp cat_fail_exp cat_fail_out
'

Expand Down

0 comments on commit a17e702

Please sign in to comment.