Check for argument errors