3 ms·
Error messages are a double edged sword.... There are no shortage of people old enough here to remember the default PHP settings dumping out far more error det
by pixl97 4y ago
Error messages are a double edged sword....
There are no shortage of people old enough here to remember the default PHP settings dumping out far more error details than needed to potential attackers. Most systems these days print out something like "Bad error happened: $ID", where you the end user still have no idea what $ID means.
Also, it looks like you're browsing on an iPhone... what do you want, a full javascript stack dump? If you got an error message like 'bearer token not passed from intermediate processing system' what exactly are you going to do with that anyway? Retry the transaction?, try a different browser?, uninstall/reinstall the app? Most of the time these just cover up something you can't do much/anything about anyway.
- atomicUpdate 4y agoThe user likely doesn’t want any details about the error itself. Instead, they want to know the consequences of it and/or how to recover from it. In this case, what parts were finalized (was the money spent or not) and where in the ticket buying process they need to restart from. The problem is that the developers use these messages for debugging their own problems. If that’s necessary, include a unique error ID in the message also, but that’s much less important than telling the user what to do next.
- OkayPhysicist 4y agoAn error message should communicate: 1) That an error occurred 2) Whether it's the user's fault or not (hopefully not) 3) What the consequences of the error are (did the transaction go through?) 4) What further action the user can take (reload and try again, stop putting emojis in our text box, whatever) 5) How/If it's appropriate to contact you about the error 6) Some cordial condolences. For example: A network error occurred during checkout. The transaction may have gone through regardless, please check your purchase history before trying again. If this continues happening, please email xxx@xxx.xxx with the following error ID: 123456789. We're sorry for the inconvenience.