 
   sockrooms.on "resolve/remove_twinkle", (socket, session, data) ->
     respond = (err, twinkle, proposal) ->
-      return socket.sendJSON "error", {error: err} if err?
+      return sockrooms.handleError(socket, err) if err?
       sockrooms.broadcast(
         "resolve/" + proposal.id,
         "twinkles",


  sockrooms.on "resolve/post_twinkle", (socket, session, data) ->
    respond = (err, twinkle, proposal) ->
      return socket.sendJSON "error", {error: err} if err?
      sockrooms.broadcast(
        "resolve/" + proposal.id,
        "twinkles",


  sockrooms.on "resolve/get_proposal_events", (socket, session, data) ->
    respond = (err, events) ->
      return sockrooms.handleError(err) if err?
      return socket.sendJSON data.callback, {events: events}

    return respond("Missing proposal ID") unless data.proposal_id?
