   ###
 
   format_entry = (e) ->
-    if _.has(e.fields, 'sys') then throw new Error errors.sys_conflict
+    if _.has(e.fields, 'sys') then W.reject(errors.sys_conflict)
     _.assign(_.omit(e, 'fields'), e.fields)
 
   # load content


  configure_content = (types) ->
    W.map types, (t) ->
      if not t.id then throw new Error errors.no_type_id
      t.filters ?= {}
      if t.name then return W.resolve()
      return client.contentType(t.id).then (res) ->
        t.name = pluralize(S(res.name).toLowerCase().underscore().s)
        return t


  ###

  fetch_content = (type) ->
    W client.entries(_.merge(type.filters, content_type: type.id))

  ###*
   * Formats raw response from Contentful
