You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[feature] support for better error message reporting
Currently, if you have a TicketResult for alice’s session, you can determine if the cookie is valid, but n/n why it is invalid. Thus it can be difficult to decide whether or not to display TicketResult.message to the user. Perhaps something like Castronaut::Presenters::Login#set_message(ticket_result) could be called by represent!, which would inspect the ticket_result for specific error conditions and set the display message accordingly.
On a different but related note, parsing the error message for info is the method TicketResult uses for determining uses for determining validity, but that doesn’t seem to be a sustainable approach unless there’s going to be a convention for error messages in TicketResult instances.
original LH ticket
This ticket has 0 attachment(s).
The text was updated successfully, but these errors were encountered: