Better error handling

This commit is contained in:
Aram
2016-05-03 07:11:44 +02:00
parent d1702c3682
commit c610829f2a

View File

@ -623,7 +623,7 @@ int main (int argc, const char * argv[]) {
}
switch(nested_auth(uid, known_key, ab_key, for_block, target_block, target_key, NULL)){
case KEY_WRONG:
printf("This doesn't look like the right key.\n");
printf("%012"PRIx64" doesn't look like the right key %s for block %u\n", known_key, ab_key == MC_AUTH_A ? "A" : "B", for_block);
return 1;
case OK:
break;