hex icon indicating copy to clipboard operation
hex copied to clipboard

Improved Error Message (Issue #949)

Open Coreastreet opened this issue 2 years ago • 1 comments

Hi hex maintainers,

This pull request is intended to added Issue #949 for hexpm/hex.

Basically, my changes to hex.publish under tasks directory make a call to hexpm's API to check whether a package with the same name exists and if so, create another matching condition which returns a more informative error in the format: "Package with the name 'foobar' has already exists".

I have successfully tested the code with two identical packages with the only difference being the package name (jason vs new_jason)

However, I have not tested the code with packages publishing under an organization or repository. In which case, the code may simply return the standard error I think.

Regards, Coreastreet (new to elixir)

Coreastreet avatar Jul 27 '23 03:07 Coreastreet

Hi supersimple (username),

I will commit the changes once ericmj reviews your changes.

Regards, Justin

Coreastreet avatar Sep 05 '23 11:09 Coreastreet

Getting this PR over the finish line here: https://github.com/hexpm/hex/pull/1021, unfortunately I couldn't push to the PR branch. Sorry for the delay.

Thanks @Coreastreet and @supersimple!

ericmj avatar Apr 16 '24 18:04 ericmj