same error for app command not existent and not executable

Bug #1727425 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Unassigned

Bug Description

When running snapcraft on a project with an unexisting command defined in an app, or when the command is not executable, the same error message is returned.

This is a problem because then there is no nice way to explain how to fix the problem. Instead of showing the same error, there should be one error for unexisting and a different one for not executable. That way the instructions on how to fix it will be clear and precise.

To reproduce, run snapcraft on a project with something like:

apps:
  test:
    command: idontexist

$ snapcraft
The specified command 'idontexist' defined in the app 'test' does not exist or is not executable

Tags: bitesize ui
Leo Arias (elopio)
tags: added: bite
tags: added: bitesize
removed: bite
tags: added: ui
removed: bitesize
tags: added: bitesize
Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: New → Confirmed
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
importance: Undecided → Medium
status: Confirmed → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.