Raise error instead of warning.