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:
parent
44ad8f0361
commit
2cbf8a68cf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user