Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
style($log): reformat code for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar committed Mar 20, 2012
1 parent 64fb1f2 commit 9171c76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/service/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9171c76

Please # to comment.