confusing message about instance name with simple typo

Bug #1875933 reported by Ian Johnson
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Confirmed
Low
Unassigned

Bug Description

while trying to install the "scummvm" snap, I tried this:

```
$ snap install scummVM
error: cannot install "scummVM": invalid instance name: invalid snap name: "scummVM"
```

which was very confusing because there wasn't a "_" so I didn't think an instance name would have been specified, but it turns out that any capitalized letters get interpreted as the "instance name":

```
$ snap install hello-worldCAPS
error: cannot install "hello-worldCAPS": invalid instance name: invalid snap name:
       "hello-worldCAPS"
```

We should fix the message to just complain about capital letters instead of an instance name.

Tags: papercut
Changed in snapd:
status: New → Confirmed
assignee: nobody → Maciej Borzecki (maciek-borzecki)
importance: Undecided → Low
tags: added: papercut
Changed in snapd:
assignee: Maciej Borzecki (maciek-borzecki) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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