Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Better errors when saving with validation fails #75

Closed
Punksolid opened this issue Aug 24, 2016 · 3 comments
Closed

Better errors when saving with validation fails #75

Punksolid opened this issue Aug 24, 2016 · 3 comments

Comments

@Punksolid
Copy link

When validation rules are specified if an error happens when saving model the error exception shows a general HttpResponseException without any other explanation. Then after deleting some parts of the model showed me the correct error when I commented the Model::$rules

ways to replicate

  1. Specify validation rules in a model,
    2a) put Model Events of a class not found
    OR
    2b) Send a null value to a not null field in database
@mlantz
Copy link
Member

mlantz commented Aug 26, 2016

Is this in relation to the starter kit? or something else? The purpose of the starter kit is to provide a base point in which to build from. We're always open to pull-requests that can help improve the code.

@Punksolid
Copy link
Author

I think it is related to the CRUD maker maybe, where does the validations are made? I'm trying to figure it out

Thanks

@Punksolid
Copy link
Author

I found it, It happens a conflict when whoops is enabled filp/whoops, I don't know why this happen but it is not a laracogs error

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants