提交 f5d5095b 作者: rht

Add newline to 'ipfs init' error message

上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论