← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1582367] Re: confusing error when the binary is not found and it has the same name of the app

 

** Changed in: snapcraft
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1582367

Title:
  confusing error when the binary is not found and it has the same name
  of the app

Status in Snapcraft:
  Fix Released
Status in snapcraft package in Ubuntu:
  Fix Released
Status in snapcraft source package in Xenial:
  Fix Committed
Status in snapcraft source package in Yakkety:
  Fix Released

Bug description:
  I've made a mistake when trying to snap a CLI app. In the command
  section I entered the name of a bin that doesn't exist. I got this
  error back:

  The specified command 'hollywood' defined in 'hollywood' does not
  exist or is not executable

  The error is ok, but we could improve it with something like:

  The specified command 'hollywood' defined in *the 'hollywood' app*
  does not exist or is not executable.

  Here's the relevant part of my snapcraft.yaml:

  apps:
    hollywood:
      command: hollywood

  [Impact]

   * New users are likely to make this error, and the error might
  confuse them more.

  [Test Case]

   * Define a snapcraft.yaml with a wrong command path
   * Run snapcraft

  [Regression Potential]

   * Extremely low. The fix is to change a string, that won't affect the
  error handling of existing code paths.

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapcraft/+bug/1582367/+subscriptions