提交 a4230244 作者: Jakub Sztandera 提交者: Jeromy

cli: reword message about mount and offline

License: MIT
Signed-off-by: 's avatarJakub Sztandera <kubuxu@protonmail.ch>
上级 8273b0f4
......@@ -340,7 +340,7 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
return
}
if mount && offline {
res.SetError(errors.New("mount is not supported in offline mode"),
res.SetError(errors.New("mount is not currently supported in offline mode"),
cmds.ErrClient)
return
}
......
......@@ -30,8 +30,8 @@ test_expect_success "no panic traces on daemon" '
test_kill_ipfs_daemon
test_expect_success "ipfs daemon --offline --mount fails - #2995" '
(test_must_fail ipfs daemon --offline --mount 2>daemon_err) &&
grep "mount is not supported in offline mode" daemon_err
test_expect_code 1 ipfs daemon --offline --mount 2>daemon_err &&
grep "mount is not currently supported in offline mode" daemon_err
'
test_done
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论