Error message sanitization #94

Open
koles opened this Issue Jan 20, 2011 · 0 comments

Comments

Projects
None yet
1 participant
Member

koles commented Jan 20, 2011

The CL tool is very user unfriendly when reporting errors:

  1. when I run the tool with invalid parameters, a complete help screen pushes the original error message out of the visible screen. The complete help screen should only be available on explicit --help switch
  2. server-side errors are usually formatted as follows:
    {"parameters":[],"component":"Account::Login::AuthShare","message":"Bad Login or Password"!"}
    Instead of showing this JSON representation, the CL tool should transform it into a human readable string (including passing the parameters to the error message itself)
  3. I believe the stacktrace discourages an average user from paying attention to the error message. We should put it to the debug log only. The users should be advised to look at the debug log for details or attach it to a support ticket.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment