Open hacdias opened 1 year ago
I don't think it's a bug.
Theses commands do nothing, they read input and spit it out.
I don't see why they need to run on the daemon.
I missunderstood, yeah it should show an error message.
Should we just check nd.Daemon value in that command and return error ?
@susarlanikhilesh no. This command should work with a non-active daemon. The problem here is that it the command is not outputting an error when an error happens and the daemon is not active. If the daemon is active, the error is returned (for example, when you give it an invalid CID). But if the daemon is not active, you do not get an error. You still get the correct output when everything goes well, but if anything's wrong, you don't get an error.
Checklist
Installation method
built from source
Version
Config
Description
The
ipfs cid format
command does not show an error when a daemon is not active. For example, run:If there's a daemon running, you get:
Otherwise, nothing. I also wonder if this happens with other commands. Wouldn't be surprised.