469,343 Members | 5,380 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,343 developers. It's quick & easy.

JS Error Messaging suggestions

I am at a point of deciding on the future of how my frameworks present
errors to users.

Currently, I capture all errors with window.onerror and I create a big
ugly JavaScript dump that includes: Error message, Line number, source
file (moz), stack dump, date, url, other meta data and some contact
information.

Needless to say, it is verbose and ugly but it has as much information
as I can get to debug the issue but form a user perspective, it must be
scary.

I am now considering other options such as showing a nice floating and
clickable message that an error ocurred. Clicking may give them the
option to read the message, send the message to dev team and with
possible debugging data.

For those who are maintaining huge JS applications, what is your ideal
way of handling JS error and keeping the users in the know without
scaring them with the gory details?

Your insight is greatly appreciated.

JsD

Oct 26 '05 #1
2 1078
> For those who are maintaining huge JS applications, what is your ideal
way of handling JS error and keeping the users in the know without
scaring them with the gory details?


I have found that the best comprimise is to create a form with all the
error information as hidden fields, display a simple message - "sorry
an error occoured" or the such - with a submit button to report it and
a message letting the user know that reporting the error will help
refine the application, maybe a couple of "what were you doing that
f**ked up my app?" type text fields.

Bonus points for submitting the form using AJAX or something else
completely invisible when possible, and displaying the button as a
fallback otherwise. Be sure to change the message about how the user
should report the error to let them know that it has already been
reported.

Oct 26 '05 #2
> "what were you doing that f**ked up my app?"

My thoughts exactly =)

Thanks for the Info

Oct 26 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Dennis Owens | last post: by
3 posts views Thread by JasonH | last post: by
4 posts views Thread by SRLoka | last post: by
3 posts views Thread by Ibrahim. | last post: by
2 posts views Thread by Richard | last post: by
2 posts views Thread by mirin | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.