               CoffeeAlerts.success(@_recordName() + " created")
               @fetchRecordCount()
       else
-        CoffeeAlerts.error("Error could not save new " + @_recordName())
+        CoffeeAlerts.error("Error could not save new " + @_recordName() + " " + @errorMessage)
 
 
   setFilterColumn: (col) ->

  loadingTemplate : 'ironTableLoading'
  defaultSelect   : {}
  showFilter      : false

  _subscriptionComplete = false
  


  editRecord: (_id) ->
    @_sess("currentRecordId", _id)
    CoffeeModal.form(@formTemplate, @formData('edit', _id), @updateRecord, 'Edit ' + @_recordName().capitalize())


  updateRecord: (yesNo, rec) =>
    @errorMessage = ''
    if yesNo
      if @collection().editOk(rec) and @checkFields(rec, 'update')
        if @collection().methodOnUpdate
          Meteor.call @collection().methodOnUpdate, @_sess("currentRecordId"), rec, (error) =>
            if error
