Skip to content

ipfs cat <hash> needs a good error message #1060

Closed

Description

@jbenet
> ipfs cat Qmaa4Rw81a3a1VEx4LxB7HADUAXvZFhCoRdBzsMZyZmqHD
Error: Lock Create of foo/daemon.lock (abs: /Users/jbenet/.go-ipfs) failed: open .go-ipfs/daemon.lock: no such file or directory

unhelpful error message. should be:

> ipfs cat Qmaa4Rw81a3a1VEx4LxB7HADUAXvZFhCoRdBzsMZyZmqHD
Error: no repository found at /Users/jbenet/.go-ipfs
Did you run `ipfs init` ?

This error message used to be correct, i believe. in any case, it's an error that tons of people are bound to hit. Maybe this is a case where we should have error message tests.

cc @whyrusleeping @chriscool

Activity

  1. chriscool commented on Apr 12, 2015

    @chriscool
    Contributor

    Ok, yeah you are right that it is perhaps better to check the error message then.

  2. whyrusleeping commented on Apr 12, 2015

    @whyrusleeping
    Member

    Yeah, every bit of the UX should be tested

  3. whyrusleeping commented on Aug 23, 2016

    @whyrusleeping
    Member

    this has been resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)topic/cleanupTopic cleanuptopic/commandsTopic commands

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions