 getGist = (url, cb) ->
     GIST_API = 'https://api.github.com/gists'
     post_req = rest.get(GIST_API + url)
+    post_req.on 'error', (err, response) ->
+        sys.puts('getGist error:')
+        sys.puts(err)
+        sys.puts(response)
     post_req.on 'complete', (data, response) ->
         cb(data, response)
 

                    extra_body  : protoDisplayTag(url, data)
                htmlResponse(response, content)
            else
                raw_response = github_response.raw.toString()
                try
                    github_response_content = JSON.stringify((JSON.parse(raw_response)), null, 4)
                catch e

cli                 = require 'cli'
sys                 = require 'sys'

{ htmlResponse }    = require '../src/http_utils'
renderer            = require '../src/renderer'
