Browse Source

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.
wip/maildir-path-under-inbox
Oswald Buddenhagen 3 years ago
parent
commit
2cbf8a68cf
  1. 2
      src/main_sync.c

2
src/main_sync.c

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

Loading…
Cancel
Save