OT: Microsoft should be banned by decree from showing naked error codes to people, I've been fighting them for decades now
OT: Microsoft should be banned by decree from showing naked error codes to people, I've been fighting them for decades now
Unless every possible error scenario gets its own descriptive error, that error code is a necessity. And nobody is going to accept a dev adding error messages to every possible error, because localisation to 180+ languages will cost a fortune. Your choice is between "something went wrong" and "something went wrong 0x82939470". The first one is ungoogleable and useless, the second one will have resolutions on forums within a month of appearing.
Sure, I'd like every message to be descriptive towarsa the user, but that simply won't happen. Microsoft has an extensive API for formatting error codes already and if they pop up a 0xsomething, that means they were never going to bother with adding a descriptive message at all.
Yeah, that's kinda the point. Every error code gets its own text description. That's what I do, what my company does, with our code. Because technicians don't have the ability to look up error codes like engineers can. And even if they did, the ability to look up where/when the error code was generated doesn't tell you what to do about it.
Microsoft is just way below average in this area and counts on its locked-in customers not knowing how much better other companies are.
I don't think Microsoft can document _every_ error, it's just not very realistic. I'd prefer it if they did, but lacking that, the error code works just fine.
AKA "Partying like it's 1999"
Microsoft doesn't document all of their errors, annoyingly, but at least the HRESULT structure gives some kind of indication of the source.
https://www.microsoft.com/en-us/download/details.aspx?id=100...
There's a web version I am aware of as well, but I think you have to work for MS to get access to it. I would speculate there's extra stuff in that one.
I mean that's not out of the question, I force that in every codebase I use. The only one I find that difficult in is Kotlin, because it's a trash language that doesn't properly compose throwables.
I believe Jetbrains Compose adds some restrictions on try/catch but even then there are different ways you can communicate failure.
Can you elaborate?
I hate getting a 0x code from Windows because the search results are going to be completely useless, possibly not even for the program that I am trying to troubleshoot.
The error codes are sort of a self service mechanism for advanced users who want to try unofficial troubleshooting. They're not a substitute for a real patch fixing the root issue.
I think there's some path where driver devs can publish updates and link them to BSOD stacks which lets Windows tell users if they hit a bug that is fixed by a driver.
This was like 10+ years ago and I've never hit the same flow again, despite encountering bluescreens every once in awhile, which I guess goes to show how difficult this problem is.
Much more often I see : Oops, something went wrong
why? localization fragments search results.
I've seen a lot of people struggling to solve their Linux issues because they were searching for errors and logs in spanish and search results are several orders of magnitude off.
of course, both are better.
You should still add an error code, so that people can look for additional documentation about the error on your official doc, but having obscure errors and assuming people will look on Google to see if someone on reddit or stackoverflow has more idea about what the problem could be is criminal laziness.
There is no c) "Not a valid Microsoft controller" option. Which one between a) or b) is more likely to lead to resolution? Note, Microsoft also offers phone and/or chat support to Xbox users.
Also, what do your alternatives have to do with the question whether it's better or not for the error message to be localized?
And why are error codes supposed to be 32bits long in the first place?
To get back to the topic, there are no reason why there couldn't be a good error message (there's no “two options” when you write your error messages) and if the error message is good enough so you don't have to Google it, you can and should localize it so the majority of the people of this planet could in fact read it. And you also want to put a error code available in case you still wanted to investigate about it, but there's little reason for this error code to be 32bits long unless you have 4 billion different possible errors in your app…
I get better error messages from the firmware of obscure embedded chips than from Microsoft Windows
According to the article, they didn't. The pop up has the error code and a descriptive error message. And no "Oops :(".
And find what information? Try turning it off and on again, update & reboot, then clean the registry?
“Using unauthorised accessories compromises your gaming experience. For this reason, the unauthorised accessory will be blocked from use on 11/12/2023,” read the pop-up on the console. It then advised the player to return the product to the store or talk to the manufacturer.
It seems the proper wording is displayed along the code, though, just the article elaborates later. If you think the existence of such code itself is the problem, you're just trying to make someone's life needlessly slow and harder.Also even if they have that nailed, it's still no guarantee. I'm not an Xbox owner but presumably you have a profile with a region (for payments/billing, tax etc) and a selected language. I'd be willing to bet a lot of Brits, Canadians or Aussies have selected "English (US)" language without really thinking through.
We'll see, but I think there will be quite a few confused people in a couple of weeks time regardless.