HangarMC / hangar-publish-plugin

Gradle plugin for publishing artifacts to Hangar

Home Page:https://plugins.gradle.org/plugin/io.papermc.hangar-publish-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

i18n message key being returned as error message

TheMeinerLP opened this issue · comments

Description:
When uploading a release with a non-existent channel, only an i18n string is returned instead of a meaningful message.

Steps to reproduce:

  1. Use hangar publish plugin
  2. set channel to something that makes no sense
  3. try to release

Expected behaviour:

  1. a message saying that the channel is not available

Repo+Commit: https://github.com/OneLiteFeatherNET/CoinCoffer/blob/22ba84bea7402230b660bcf75939aad32e033d3e/coincoffer-patches/build.gradle.kts.patch#L70

Images:
image

meh, idk what we would do here. the backend returns those by design, the frontend does the translation. maybe when we fixed crowdin we can download the english file into the gradle plugin or something, but like, the error is understandable, your channel has no color

The actual error was that I had capitalised it instead of lower case. But I got the error message for colour.

well, "yes". you entered a channel that didnt exist, it tried to create a new channel, that failed because no color.

Wouldn't it make more sense from my point of view to say that the channel must exist instead of displaying the colour error message?

well, creating a new channel on upload is a feature.

Then I would rather ask, is it also possible to specify the colour in the plugin if it is a feature?