lib/gcli/util/domtemplate.js
function handleError(state, message, ex) {
  logError(message + ' (In: ' + state.stack.join(' > ') + ')');
  if (ex) {
    logError(ex);
  }
}
function handleError(state, message, ex) {
  logError(message + ' (In: ' + state.stack.join(' > ') + ')');
  if (ex) {
    logError(ex);
  }
}
function handleError ( state , message , ex ) { logError ( message + ' (In: ' + state . stack . join ( ' > ' ) + ')' ) ; if ( ex ) { logError ( ex ) ; } }
A generic way of reporting errors, for easy overloading in different
environments.
@param message the error message to report.
@param ex optional associated exception.
A generic way of reporting errors for easy overloading in different environments .