[gnome-continuous/wip/hwtest: 2/11] Hack: make process exit with non-zero status when make fails
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous/wip/hwtest: 2/11] Hack: make process exit with non-zero status when make fails
- Date: Thu, 5 Jun 2014 14:10:14 +0000 (UTC)
commit 94af898fed8a544728549660b6aa0cd8ce209424
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Jun 5 09:34:11 2014 -0400
Hack: make process exit with non-zero status when make fails
src/js/builtins/make.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/js/builtins/make.js b/src/js/builtins/make.js
index dbcf7e9..fdd8feb 100644
--- a/src/js/builtins/make.js
+++ b/src/js/builtins/make.js
@@ -58,7 +58,9 @@ const Make = new Lang.Class({
GSystem.file_ensure_directory(buildPath, false, cancellable);
taskmaster.pushTask(buildPath, args.taskname, params);
loop.run();
- if (!this._failed)
+ if (this._failed)
+ throw new Error("Failed");
+ else
print("Success!")
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]