Skip to content

Commit

Permalink
Improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
npmccallum committed Sep 29, 2017
1 parent ba48023 commit a652edc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luksmeta.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ main(int argc, char *argv[])

r = crypt_load(cd, NULL, NULL);
if (r != 0) {
fprintf(stderr, "Unable to load device (%s): %s\n",
fprintf(stderr, "Unable to read LUKSv1 header (%s): %s\n",
o.device, strerror(-r));
crypt_free(cd);
return EX_IOERR;
Expand All @@ -502,7 +502,7 @@ main(int argc, char *argv[])
}

if (strcmp(type, CRYPT_LUKS1) != 0) {
fprintf(stderr, "%s (%s) is not a LUKS device\n", o.device, type);
fprintf(stderr, "%s (%s) is not a LUKSv1 device\n", o.device, type);
crypt_free(cd);
return EX_OSFILE;
}
Expand Down

0 comments on commit a652edc

Please sign in to comment.