hex icon indicating copy to clipboard operation
hex copied to clipboard

Improve error message when a package already exists

Open bortzmeyer opened this issue 2 years ago • 3 comments

Trying to hex publish a package when there is already one with this same name prints:

Publishing failed
account not authorized for this action

The error message is misleading, it has nothing to do with the account you use. Something like "package with the name foobar already exists" would be more sensible, IMHO.

bortzmeyer avatar Jul 10 '22 14:07 bortzmeyer

Hi bortzmeyer,

I wrote a basic fix. Hope it may be useful to future users.

Regards, Coreastreet

Coreastreet avatar Jul 27 '23 03:07 Coreastreet

Screenshot 2023-07-27 at 10 35 00 am

Coreastreet avatar Jul 27 '23 03:07 Coreastreet

The picture illustrates the new error response.

Coreastreet avatar Jul 27 '23 03:07 Coreastreet