diff options
author | lshprung <lshprung@yahoo.com> | 2020-10-12 22:20:55 -0700 |
---|---|---|
committer | lshprung <lshprung@yahoo.com> | 2020-10-12 22:20:55 -0700 |
commit | 4313a39544cde16e5750f5affc1b7702770c1699 (patch) | |
tree | 71e0ea2862f0daad8c40fbce0869c6f5699a9cff /draw.c | |
parent | d529fcc336110d243beeef3d393c1122a8238a39 (diff) |
Improved error messages and readme
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -67,6 +67,12 @@ int main(int argc, char **argv){ g = get_groups(); //retrieve results of cfg_interp g_count = get_gcount(g); //retrieve number of groups in g (only do this after removing empty groups) + //check that there are is at least one valid group + if(g_count == 0){ + printf("Error: No Entries!\n"); + exit(0); + } + initscr(); cbreak(); keypad(stdscr, true); |