summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-04-19 11:58:33 +0200
committerJustus Winter <justus@gnupg.org>2016-04-26 14:42:09 +0200
commitafbed6fbf2335476c9ca64aa82d5f591be6c4ded (patch)
treed072e37493a278b30399ce55e1e0bb465538fd1d /libdiskfs
parent378f3be0111dfa6d0e780c5f199116996e14a3e3 (diff)
libdiskfs: improve error handling
* libdiskfs/boot-start.c (diskfs_start_bootstrap): Improve error handling.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/boot-start.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index 60bf33dd..0fb3e89d 100644
--- a/libdiskfs/boot-start.c
+++ b/libdiskfs/boot-start.c
@@ -291,12 +291,13 @@ diskfs_start_bootstrap ()
/* Supply no intarray, since we have no info for it.
With none supplied, it will use the defaults. */
NULL, 0, 0, 0, 0, 0);
+ if (err)
+ error (1, err, "Executing '%s'", exec_argv);
free (exec_argv);
free (exec_env);
mach_port_deallocate (mach_task_self (), root_pt);
mach_port_deallocate (mach_task_self (), startup_pt);
mach_port_deallocate (mach_task_self (), bootpt);
- assert_perror (err);
}
/* We look like an execserver to the execserver itself; it makes this