Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I really enjoyed reading this, thanks!

> In this case it's just error code 5: "STATUS_ACCESS_VIOLATION", which is a memory access error, which typically means it's a bug where the program accidentally is trying to read outside of its memory space.

What would be a (more) user-friendly error message for this though, given the quite technical nature of the error?



For printing the codes? The programmer in me says something like:

"Error: 0xC0000005 - STATUS_ACCESS_VIOLATION - (Error, Microsoft defined, unreserved) Error: This is an internal error that prevented normal operation of the application. Please contact support at X."

Which conveys all of the information in the code and tells the user what they should do and that it wasn't their fault. Then it's a different story to say which code would be the most useful for the user.

NPM does something like this[1].

[1] https://stackoverflow.com/questions/22445371/npm-install-err...


In fact the "status access violation" message would be much more confusing for the "normal" non-programmer person.

I believe the actual error would be "access violation", status is only the prefix. But I don't think that text would help normal users more.

As in: "Who is that General Protection, what has he done to my computer and why is that his fault"?

"General Protection Fault" were the words actually presented to the "normal" users before. It surely didn't help them to read that.


They could have the error code, name and a small explanation about what the error means. Eg.: The program tried to access an invalid memory address and had to be terminated. That is likely a bug in <program name>


Your computer has performed an illegal operation.

sirens heard outside




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: