[gnome-ostree] build: Print which component failed
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] build: Print which component failed
- Date: Tue, 7 May 2013 13:21:09 +0000 (UTC)
commit eec5fc045215ca7df97f6d3a5697cbd8f678cbe8
Author: Colin Walters <walters verbum org>
Date: Tue May 7 09:20:52 2013 -0400
build: Print which component failed
src/js/tasks/task-build.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/js/tasks/task-build.js b/src/js/tasks/task-build.js
index 9d4e749..de1e13f 100644
--- a/src/js/tasks/task-build.js
+++ b/src/js/tasks/task-build.js
@@ -645,7 +645,12 @@ const TaskBuild = new Lang.Class({
let proc = new GSystem.Subprocess({ context: context });
proc.init(cancellable);
print("Started child process " + context.argv.map(GLib.shell_quote).join(' '));
- proc.wait_sync_check(cancellable);
+ try {
+ proc.wait_sync_check(cancellable);
+ } catch (e) {
+ print("Build of " + basename + " failed");
+ throw e;
+ }
let finalBuildResultDir = buildWorkdir.get_child('post-results');
GSystem.shutil_rm_rf(finalBuildResultDir, cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]