From faecde5da5ddabb61da105bc58a3f09c00660cc2 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 16 Feb 2016 14:45:23 +0100 Subject: builder: Report errors if eu_strip fails This was ignoring errors and causing "set-on-top-of-existing-GError" messages. --- builder/builder-module.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'builder') diff --git a/builder/builder-module.c b/builder/builder-module.c index c92b14d..990ca9e 100644 --- a/builder/builder-module.c +++ b/builder/builder-module.c @@ -724,10 +724,11 @@ builder_module_handle_debuginfo (BuilderModule *self, real_debug_path = g_build_filename (real_debug_dir, filename_debug, NULL); g_print ("stripping %s to %s\n", path, debug_path); - eu_strip (error, "--remove-comment", "--reloc-debug-sections", - "-f", debug_path, - "-F", real_debug_path, - path, NULL); + if (!eu_strip (error, "--remove-comment", "--reloc-debug-sections", + "-f", debug_path, + "-F", real_debug_path, + path, NULL)) + return FALSE; } } } -- cgit v1.2.1