 
 ## Application routes
 app.get '/', (request, response) ->
-  Comic.latest (err, comic) ->
+  Comic.latest (err, comic) =>
     # TODO: Better error handling
-    return response.status(404).send "I am literally on fire" if err
+    return response.status(404).send "I am literally on fire, and I can't find the latest" if err
 
     response.render 'strip', comic: comic
 

class Comic
  @prefix: AYP_PREFIX

  @key: () -> "#{@prefix}:comics"
  key: -> @constructor.key()

  constructor: (@url, @time, options={}) ->
    @saved = options.saved ? false

  save: (cb=(->)) ->
    return cb("already saved") if @saved
    @saved = true
    redis.zadd [@key(), @time, @url], (err, res) ->
      cb(err, this)

  # Return a comic stamped at `stamp` to caller by
  # invoking callback as `cb(err, Comic)` if it is found.


  Comic.at stamp, (err, comic) ->
    return failHome() if err
    response.render 'strip', comic: comic

app.post "/new/", (req, res) ->
