]> err.no Git - eweouz/commitdiff
Exit if option parsing fails
authorTollef Fog Heen <tfheen@err.no>
Mon, 1 Sep 2008 11:45:57 +0000 (13:45 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 1 Sep 2008 11:45:57 +0000 (13:45 +0200)
src/eweouz-write-addressbook.c

index b8f18ec15d9c9f0449b26d1ebb66fa1ca851bca1..3f57c94bf32e2443eaa750c5d1e934e23b59951a 100644 (file)
@@ -56,12 +56,14 @@ int main(int argc, char **argv)
 
        if (error != NULL) {
                fprintf(stderr, "%s\n", error->message);
+               exit(1);
        }
 
        e_book_get_addressbooks(&source_list, &error);
 
        if (error != NULL) {
                fprintf(stderr, "%s\n", error->message);
+               exit(1);
        }
 
        if (id == NULL) {