Skip to content

Error messages updates #257

@gworkman

Description

@gworkman

Noticed a few rough edges while deploying a firmware today:

  • nerves_hub help throws an error message. It currently expects nerves_hub --help
  • likewise, nerves_hub help COMMAND also throws an error message
  • nerves_hub firmware sign help text should be nerves_hub firmware sign /PATH/TO/FIRMWARE --key KEYNAME. (and best case is we can detect the firmware file rather than having to explicitly pass it it)
  • nerves_hub product delete PRODUCT_NAME doesn't handle success correctly: Unhandled error: {:ok, nil}
  • nerves_hub product create doesn't accept the default (directory name):
❯ nerves_hub product create
NervesHub server: manage.nervescloud.com:443
NervesHub organization: protolux
Product name (default soleil_demo):

Creating product ''...
Unhandled error: {:error, %{"errors" => %{"name" => ["can't be blank"]}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions