mirror of
https://github.com/ushahidi/SMSSync.git
synced 2026-04-25 15:55:57 +03:00
[GH-ISSUE #68] Custom error messages from server. #58
Labels
No labels
Bug report
Code improvement
Concern
Feature request
Feature request
Good first issue to work on
In progress
Needs info
Question
Ready
Translation
User Experience
User Experience
Website
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SMSSync#58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @olliebennett on GitHub (Dec 22, 2012).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/68
The server sends the following JSON response on failure:
When receiving this status, the app gives a notification along the lines of:
I propose that we allow an extra "error" field in the response, along the lines of:
The only down-side is that error messages would have to be translated on the server, if required.
Examples server responses:
Of course, a message similar to that currently shown, should still be shown in the case that the server is unreachable.
@eyedol commented on GitHub (Feb 11, 2013):
If there is a
errorvalue add that to notification message otherwise use the default message.@olliebennett commented on GitHub (Feb 28, 2013):
Implemented, pending more testing. See my feature-errorcodes branch.