Skip to content

Improve http error messages to make sense for the end player#4725

Merged
vadi2 merged 1 commit intoMudlet:developmentfrom
vadi2:improve-http-download-errors
Jan 31, 2021
Merged

Improve http error messages to make sense for the end player#4725
vadi2 merged 1 commit intoMudlet:developmentfrom
vadi2:improve-http-download-errors

Conversation

@vadi2
Copy link
Copy Markdown
Member

@vadi2 vadi2 commented Jan 31, 2021

Brief overview of PR changes/additions

Improve http error messages to make sense for the end player

Motivation for adding to Mudlet

So coders can use the error message as-is without having to worry to translate it to something the player would understand.

Other info (issues closed, discussion etc)

The first time I've seen someone use them - and it was someone experienced with Mudlet, @Delwing, the end result didn't work out:

image

I don't think the expectations that the interface is simple to use were met by Mudlet here. I understand the motivations behind a programmable error message, but it in practice it didn't work out, and it's better to be consistent with all the other messages we use which are player-friendly.

@vadi2 vadi2 requested a review from a team as a code owner January 31, 2021 11:01
@vadi2 vadi2 requested review from a team January 31, 2021 11:01
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Jan 31, 2021

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

Copy link
Copy Markdown
Contributor

@Kebap Kebap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the motivations behind a programmable error message, but it in practice it didn't work out

Me not so much. This seems better now.

@vadi2 vadi2 merged commit c5285d1 into Mudlet:development Jan 31, 2021
@vadi2 vadi2 deleted the improve-http-download-errors branch January 31, 2021 16:56
Copy link
Copy Markdown
Member

@SlySven SlySven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👎 Those texts weren't intended for direct display to the end user - as untranslated Lua API event texts they were supposed to be used to key responses from any event handler that got them - which of course will now have to be rewritten to check for the new texts you have just swapped them for. Fair enough error handling is something that has already become somewhat flexible in comparison with the do not break backwards compatibility mantra/dogma. For justification as to why the original texts were camelCaseRunTogetherWords it is just an extension of the same process that is used to give the events identifiers - they are of the same form.

I do not see directly how the event arguments are translated into "http error messages" but perhaps the changes should have been made elsewhere where the event arguments were turned into a [ WARN ] - type message on screen - which is supposed to be translated...

😠

@vadi2
Copy link
Copy Markdown
Member Author

vadi2 commented Jan 31, 2021

I don't think any scripts are using those messages to be honest, that's why I feel this is a safe change to make. I don't think you'll find scripts that actually read those arguments.

Chris7 pushed a commit to Chris7/Mudlet that referenced this pull request Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants