printFriendlyStack = function printFriendlyStack(friendlyStack) {
              var log =
                _main.default._fesLogger && typeof _main.default._fesLogger === 'function'
                  ? _main.default._fesLogger
                  : console.log.bind(console);
              if (friendlyStack.length > 1) {
                var stacktraceMsg = '';
                friendlyStack.forEach(function(frame, idx) {
                  var location = ''
                    .concat(frame.fileName, ':')
                    .concat(frame.lineNumber, ':')
                    .concat(frame.columnNumber);

                  var frameMsg,
                    translationObj = {
                      func: frame.functionName,
                      line: frame.lineNumber,
                      location: location,
                      file: frame.fileName.split('/').slice(-1)
                    };

                  if (idx === 0) {
                    frameMsg = (0, _internationalization.translator)(
                      'fes.globalErrors.stackTop',
                      translationObj
                    );
                  } else {
                    frameMsg = (0, _internationalization.translator)(
                      'fes.globalErrors.stackSubseq',
                      translationObj
                    );
                  }
                  stacktraceMsg += frameMsg;
                });
                log(stacktraceMsg);
              }
            }
prints a friendly stacktrace which only includes user-written functions
and is easier for newcomers to understand
@method printFriendlyStack
@private
@param {Array} friendlyStack