Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-4044

Update Module generators: Improve error when mender-artifact not present

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Sprint:
      MEN Sprint 122
    • Story Points:
      5
    • Backlog:
      yes
    • Days in progress:
      0

      Description

      Most Update Modules come with a Mender Artifact generator that uses the `mender-artifact` utility under the hood. If `mender-artifact` is not installed an error is generated, however this can be confusing for the user (why is it complaining about mender-artifact, and how do I fix it?).

      Here is a sample question:

      We should improve the error message so that such questions don't need to be asked, but it is instead clear why it happens and how to fix it.

      This applies to mender-binary-delta-generator but also to most Update Modules that we have created and we should cover it in all of them.

      Acceptance criteria

      • If mender-artifact is not installed, the Artifact generator exits with an error message explaining how to install it
      • All Update Module generators in Mender Hub are adjusted to this (see below)

      The following are Update Modules that have a generator:

      Suggested error message:

      The mender-artifact utility is not found but required to generate Artifacts.
      Please follow the instructions here to install it and then try again: https://docs.mender.io/downloads#mender-artifact
      

        Attachments

          Activity

            People

            Assignee:
            a10040 Kristian Amlie
            Reporter:
            a10003 Eystein Maloy Stenberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support