Skip to content

Show server errors in snackbar #48

Description

@tigloo

When editing an entity it may happen that the server rejects the edit due to malformed inputs (for example missing properties, incorrect codings, etc).

Fire Scribe's snackbar only says "couldn't save entity" which is not helpful. I suggest that the snackbar contains a "Details" button. When clicked, it will show details of the error:

  • If the server result is OperationOutcome with severity "error", then show OperationOutcome.diagnostics and OperationOutcome.location
  • If the server result is something else than OperationOutcome, pretty-print the entire response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions