Skip to content

[BUG] Confusing error message from some command line requests #1137

@rydrman

Description

@rydrman

Describe the bug

> spk env '{pkg: python, fromBuildEnv: true}'
ERROR (link)

  × Error: Cannot resolve package using 'fromBuildEnv', package not present: python
  │ Is it missing from your package build options?

Expected behavior

This request is nonsensical here and the error message should explain why

related to efforts in #1130

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions