src/scalejs.base.log.js
function formatException (ex) {
        var stack   = (ex.stack) ? String(ex.stack) : '',
            message = ex.message || '';
        return 'Error: ' + message + '\nStack: ' + stack;
    }
function formatException (ex) {
        var stack   = (ex.stack) ? String(ex.stack) : '',
            message = ex.message || '';
        return 'Error: ' + message + '\nStack: ' + stack;
    }
function formatException ( ex ) { var stack = ( ex . stack ) ? String ( ex . stack ) : '' , message = ex . message || '' ; return 'Error: ' + message + '\nStack: ' + stack ; }
Formats an exception for better output

@param {Object} ex exception object
@memberOf log
@return {String} formatted exception
Formats an exception for better output