 
   authClient.authorize (err, tokens) ->
     # Bail on any errors
-    if err? then return throw err
+    if err? then return callback err, tokens
 
     analytics.data.ga.get
       auth: authClient

    {tags} = metadata
    guides = metadata.collections.guide ? []

    addPageViews files, null, ->
      addApiFiles files, metalsmith, opts, done


      "metrics":"ga:pageViews",
      "dimensions":"ga:pagePath",
      "sort":"-ga:pageViews",
      "max-results":"25"
      (err, result) ->
        if err? then return callback err, result, tokens
        callback null, result.rows ? []


# Query Google Analytics for Page Views and add the
