Skip to content

Save operation does not set errors #14

Description

@ax487

I would appreciate it if you could look into this:

I try to save a model using model.save:

model.save().then((result) => {
  console.log('Save operation finished')
  console.log('Result: ')
  console.log(result)
  console.log('Model:')
  console.log(model)
  console.log('Error in model:')
  console.log(model.error)
})

The server returns a 422 (Unprocessable Entity) error. I see the following:

  • The result contains the JSON error from the server.
  • The model has previously edited values set.
  • The model.error is null

The last point is obviously a problem. Would you consider this a bug? If this is intended, how is it possible to spot the error?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions