Raise an error instead of just printing validation result.