fix #397, make TargetAction use errorResId and errorDrawable

Closes #397