[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Is there a non-hack way to have a submit description exit and throw an error message?



On 09/26/2016 04:15 PM, John M Knoeller wrote:
> 8.5.7 will have error and warning keywords in submit (and config) files.
> 
> # this generates a message and aborts the submit
> If $(INPUT_IS_INVALID)
>    Error : -- $(INPUT_FILE) is invalid ----
> Endif
> 
> # this generates a message and continues
> If $(QESTIONABLE_BEHAVOR)
>    Warning : You really shouldn't do that...
> Endif

Would this work:

if $(INPUT_IS_INVALID)
  warning: $(INPUT_FILE) no good
  $(BAD_ONES)++
endif

if $(BAD_ONES) > $(NUM_INPUT_FILES)/2
  error: oh what's the point...
endif

just curious
-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature