See help(tryCatch):
Conditions are signaled by
‘signalCondition‘. In addition, the
‘stop‘ and ‘warning‘ functions have
been modified to also accept
condition arguments.
and later under ‘See Also’:
‘
stop‘ and ‘warning‘ signal conditions, and ‘try‘ is essentially a
simplified version of ‘tryCatch‘.
so you probably want stop.