 
     if program.delete
         modelName = program.delete
-        data.delete modelName, ->
-            log.info 'All models were destroyed.'
+        data.delete modelName, (err) ->
+            if err
+                log.info 'Destroying models failed.'
+            else
+                log.info 'All models were destroyed.'
 
     else if program.show
         modelName = program.show


    connector.run konnectorName, (err) ->
        if err
            log.error err.message
        else
            log.info "Import is finished."

        log.info "Changing fields for #{konnectorName} with #{fields}."
        connector.change konnectorName, fields, (err) ->
            if err
                log.error "Failed to change fields."
                log.error err
            else
                log.info """
Fields were successfully changed for #{konnectorName}
Note: only fields described in the connector file are stored.
"""

    else
        log.error "Field values are required (see --fields option)."
