pass obj instead of errors