slightlyoff / cassowary.js

Cassowary/JS, better, faster, future-ready
Other
1.69k stars 107 forks source link

RequiredFailure Error should show all the constraints unable to satisfy #63

Open cacaodev opened 9 years ago

cacaodev commented 9 years ago

Currently, when you try to add a required constraints that conflicts with a required constraint already in the solver, the solver just throws a c.RequiredFailure with the message "A required constraint cannot be satisfied".

It would be useful to have additional information. Something like "Unable to satisfy simultaneously the following constraints : [constraintYouTryToAdd, constraintInTheSolver]"