     @eturns {Object} the new slug.
     ###
     rename: (slug, newTitle) ->
+      skill = skillList[slug]
+      if not skill? then throw {message: "Could not find #{slug}.", list: skillList}
+
       newSlug = Slug.slugify(newTitle)
-      skill = skillList[slug]
       skillList[newSlug] = skill
-      console.log "Rename"
-      console.log slug
-      console.log skillList
       skill.title = newTitle
       delete skillList[slug]
 


        skillList

      , (error)->error


    ###

    @returns {Object} a promise that yields the skillList (a slug->skill object map)
    ###
    list: (scope, name) ->
      update = ()->
        $log.debug "Updating skill list"
        skillList = scope[name]

        # These are linear in the # of skills, which is fine as long as we
