code: function handle_stream_error(stream) {
      return stream.on('error', function (/*error*/) {
          // console.error(error);
          $.util.log.apply(this, arguments);
          stream.end();
      });
  }
docs: -----------------------------------------------------------------------------