From 3aebca9f3bfaba096a920202b392057d452f826c Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 8 Oct 2014 19:03:09 +0600 Subject: [PATCH] update rescue from the product log highlight --- app/controllers/platforms/product_build_lists_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/platforms/product_build_lists_controller.rb b/app/controllers/platforms/product_build_lists_controller.rb index 538592042..5c7dc2891 100644 --- a/app/controllers/platforms/product_build_lists_controller.rb +++ b/app/controllers/platforms/product_build_lists_controller.rb @@ -39,8 +39,10 @@ class Platforms::ProductBuildListsController < Platforms::BaseController end def log + worker_log = @product_build_list.abf_worker_log + render json: { - log: ( Pygments.highlight(@product_build_list.abf_worker_log, lexer: 'sh') rescue I18n.t('layout.build_lists.log.not_available')), + log: ( Pygments.highlight(worker_log, lexer: 'sh') rescue worker_log), building: @product_build_list.build_started? } end