@cryptotaxi247 / kubo / commits / a42302443

cli: reword message about mount and offline

License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

Jakub Sztandera committed Aug 1, 2016 at 16:39 UTC a42302443b315d5eee5828ab6b1c540f0ef8565e
2 files changed +3 -3
cmd/ipfs/daemon.go
+1 -1
@@ -340,7 +340,7 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
340 return
341 }
342 if mount && offline {
343 - res.SetError(errors.New("mount is not supported in offline mode"),
343 + res.SetError(errors.New("mount is not currently supported in offline mode"),
344 cmds.ErrClient)
345 return
346 }
test/sharness/t0600-issues-and-regressions-online.sh
+2 -2
@@ -30,8 +30,8 @@ test_expect_success "no panic traces on daemon" '
30 test_kill_ipfs_daemon
31
32 test_expect_success "ipfs daemon --offline --mount fails - #2995" '
33 - (test_must_fail ipfs daemon --offline --mount 2>daemon_err) &&
34 - grep "mount is not supported in offline mode" daemon_err
33 + test_expect_code 1 ipfs daemon --offline --mount 2>daemon_err &&
34 + grep "mount is not currently supported in offline mode" daemon_err
35 '
36
37 test_done