Pass function to enforce error