draftsman icon indicating copy to clipboard operation
draftsman copied to clipboard

Reasons for failure

Open NullVoxPopuli opened this issue 9 years ago • 3 comments

It would be nice if save_draft could add to errors or have an optional mode where it could raise an exception in development mode so I knew why something wasn't working :-(

NullVoxPopuli avatar Feb 03 '17 16:02 NullVoxPopuli

@NullVoxPopuli I could see how this could be a problem with callbacks that fail. Are you able to give any specific example where this has been a problem for you?

chrisdpeters avatar Feb 07 '17 14:02 chrisdpeters

Possibly related: Calling save_draft on a resource that already has a draft fails silently unless you run install with the --with-changes flag. It took quite a bit of trial and error to discover because this was the only output in the console, and the errors object on the resource was empty:

(0.3ms)  BEGIN
(0.5ms)  ROLLBACK
=> false

andymcintosh avatar Mar 14 '17 03:03 andymcintosh

If you are able to provide a known failure scenario where an error is not being raised so I have a starting point, it would allow me to starting working on this.

jmfederico avatar Jan 22 '18 23:01 jmfederico