]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: include error cause in log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Oct 2018 15:52:45 +0000 (00:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Oct 2018 15:52:45 +0000 (00:52 +0900)
src/boot/bootctl.c

index c97d21c22862301f1de40a2cddc4fa1498899098..d1aee188eb762da283baa3203901fb3a386e7f8a 100644 (file)
@@ -242,7 +242,7 @@ static int status_variables(void) {
         if (n_order == -ENOENT)
                 n_order = 0;
         else if (n_order < 0)
-                return log_error_errno(n_order, "Failed to read EFI boot order.");
+                return log_error_errno(n_order, "Failed to read EFI boot order: %m");
 
         /* print entries in BootOrder first */
         printf("Boot Loaders Listed in EFI Variables:\n");