handle argument errors