code: function outputString(object, writer) {
  		if (typeof(object) !== "string") { //$NON-NLS-0$
  			if (object.xhr && object.xhr.statusText) {
  				/* server error object */
  				object = object.xhr.statusText;
  			} else {
  				object = object.toString();
  			}
  		}
  		return writer.write(object);
  	}
docs: /* functions for handling contributed commands