have better error for failure applying action
Merge pull request #190 from dimagi/better-error

have better error for failure applying action