Misleading error when attempting to add a socket file #10503
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
Checklist
Installation method
Homebrew
Version
Config
Description
Steps to reproduce
ipfs add -r .git
. This command runs without problems.ipfs add -r .git
again. This time, you will get an error message:However, the message is misleading. To discover the real cause, you need to stop the IPFS daemon and run
ipfs add -r .git
again. Only then you will get the correct error message:While the failure to add a socket file is in itself reasonable, the error message it causes is totally misleading.
(As an aside, I don't understand why the message depends on the state of the IPFS daemon, and why adding a file to a local node involves a network connection.)
The text was updated successfully, but these errors were encountered: