Improve invalid package name errors

Notcied a number of issues cropping up that boiled down to how bad the error message is, this attempts to fix that.
Should we loop through `errors`? If there are 3 errors, this only modifies the 2nd one but not the 3rd one.