Skip to content

Commit

Permalink
fix grub_errno not being set on read error
Browse files Browse the repository at this point in the history
* Closes #14
  • Loading branch information
Alexey Kalinin authored and pbatard committed May 4, 2019
1 parent 58ceb03 commit 50c59b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grub_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ grub_disk_read(grub_disk_t disk, grub_disk_addr_t sector,

if (EFI_ERROR(Status)) {
PrintStatusError(Status, L"Could not read block at address %08x", sector);
return GRUB_ERR_READ_ERROR;
return grub_error (GRUB_ERR_READ_ERROR, N_("Could not read block"));
}

return 0;
Expand Down

0 comments on commit 50c59b2

Please sign in to comment.