From 21d86597cf18bec75410e9b010a4bb99913b04f2 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 3 Apr 2017 15:30:15 -0400 Subject: [PATCH] Display full error information for build errors in superuser view Allows for easier debugging of build failures Fixes https://www.pivotaltracker.com/story/show/142883625 --- static/directives/build-log-error.html | 8 ++++++++ static/directives/build-logs-view.html | 2 +- static/js/directives/ui/build-log-error.js | 21 +++++++++++++++++---- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/static/directives/build-log-error.html b/static/directives/build-log-error.html index 24c3c1d84..60dce3a1f 100644 --- a/static/directives/build-log-error.html +++ b/static/directives/build-log-error.html @@ -17,5 +17,13 @@ + + +
+ Base Error Information:
{{ getBaseError(entries) }}
+
+
+ Internal Error Information:
{{ getInternalError(entries) }}
+
diff --git a/static/directives/build-logs-view.html b/static/directives/build-logs-view.html index 00a5fbbf8..f1574a602 100644 --- a/static/directives/build-logs-view.html +++ b/static/directives/build-logs-view.html @@ -49,7 +49,7 @@
- +
diff --git a/static/js/directives/ui/build-log-error.js b/static/js/directives/ui/build-log-error.js index a18d4b52f..2ee6c5082 100644 --- a/static/js/directives/ui/build-log-error.js +++ b/static/js/directives/ui/build-log-error.js @@ -10,7 +10,8 @@ angular.module('quay').directive('buildLogError', function () { restrict: 'C', scope: { 'error': '=error', - 'entries': '=entries' + 'entries': '=entries', + 'isSuperuser': '