diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-02-13 20:41:42 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-02-13 20:41:42 +0000 |
commit | 71767e23dc13ef169f01852715524ecaa2721131 (patch) | |
tree | af5cf180c53233b20bf9fcf57bc574b0a7f01db4 /src/certtool.c | |
parent | 6e6601e9fb0e9f1b681ae11aed3c3c9db77019fd (diff) | |
download | gnutls-71767e23dc13ef169f01852715524ecaa2721131.tar.gz |
Better errors.
Diffstat (limited to 'src/certtool.c')
-rw-r--r-- | src/certtool.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/certtool.c b/src/certtool.c index 62a4e209ad..70bd71206d 100644 --- a/src/certtool.c +++ b/src/certtool.c @@ -2573,10 +2573,7 @@ smime_to_pkcs7 (void) { len = getline (&lineptr, &linesize, infile); if (len == -1) - { - fprintf (stderr, "Cannot find RFC 2822 header/body separator\n"); - exit (1); - } + error (EXIT_FAILURE, 0, "Cannot find RFC 2822 header/body separator"); } while (strcmp (lineptr, "\r\n") != 0 && strcmp (lineptr, "\n") != 0); @@ -2584,8 +2581,7 @@ smime_to_pkcs7 (void) { len = getline (&lineptr, &linesize, infile); if (len == -1) - { - fprintf (stderr, "Message has RFC 2822 header but no body\n"); + error (EXIT_FAILURE, 0, "Message has RFC 2822 header but no body"); exit (1); } } |