From 9171c76bb4951b5ad6449ff9d0b658f2d390f784 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 19 Mar 2012 09:44:05 -0700 Subject: [PATCH] style($log): reformat code for readability --- src/service/log.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/service/log.js b/src/service/log.js index 76413618cab0..d338985ac87b 100644 --- a/src/service/log.js +++ b/src/service/log.js @@ -82,8 +82,9 @@ function $LogProvider(){ function formatError(arg) { if (arg instanceof Error) { if (arg.stack) { - arg = (arg.message && arg.stack.indexOf(arg.message) === -1) ? - 'Error: ' + arg.message + '\n' + arg.stack : arg.stack; + arg = (arg.message && arg.stack.indexOf(arg.message) === -1) + ? 'Error: ' + arg.message + '\n' + arg.stack + : arg.stack; } else if (arg.sourceURL) { arg = arg.message + '\n' + arg.sourceURL + ':' + arg.line; }