function safeErrorString(aError) {
  try {
    var s = aError.toString();
    if (typeof s === "string")
      return s;
  } catch (ee) { }

  return "<failed trying to find error description>";
}
/* Turn the error e into a string, without fail. */
Turn the error e into a string, without fail.
Turn the error e into a string without fail .
function safeErrorString(aError) {
  try {
    var s = aError.toString();
    if (typeof s === "string")
      return s;
  } catch (ee) { }
  return "<failed trying to find error description>";
}
function safeErrorString ( aError ) { try { var s = aError . toString ( ) ; if ( typeof s === "string" ) return s ; } catch ( ee ) { } return "<failed trying to find error description>" ; }
Turn the error e into a string, without fail.
Turn the error e into a string without fail .