abort if any invalid Channels/Groups have been specified

this is more in line with expectations, and avoids a silly "No channel
specified." error message.
This commit is contained in:
Oswald Buddenhagen 2021-12-28 18:53:55 +01:00
parent 44ad8f0361
commit 2cbf8a68cf

View File

@ -283,6 +283,8 @@ sync_chans( core_vars_t *cvars, char **argv )
gotgrp: ;
}
}
if (cvars->ret)
return;
if (!chans) {
fputs( "No channel specified. Try '" EXE " -h'\n", stderr );
cvars->ret = 1;