Skip to content

Commit a423024

Browse files
Kubuxuwhyrusleeping
authored andcommitted
cli: reword message about mount and offline
License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
1 parent 8273b0f commit a423024

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/ipfs/daemon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
340340
return
341341
}
342342
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"),
344344
cmds.ErrClient)
345345
return
346346
}

test/sharness/t0600-issues-and-regressions-online.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ test_expect_success "no panic traces on daemon" '
3030
test_kill_ipfs_daemon
3131

3232
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
3535
'
3636

3737
test_done

0 commit comments

Comments
 (0)