           success(resp, status, xhr)
 
         options.error = (resp) ->
-          success localsync(method, model, options)
+          if bubbleError resp, options
+            error resp
+          else
+            success localsync(method, model, options)
 
         onlineSync(method, model, options)
 

        localsync(method, updatedModel, options)
        success(resp, status, xhr)
      options.error = (resp) ->
        options.dirty = true
        success localsync(method, model, options)

      onlineSync(method, model, options)


          localsync('create', updatedModel, options)
          success(resp, status, xhr)
        options.error = (resp) ->
          if bubbleError resp, options
            error resp
          else
            options.dirty = true
            model.set model.idAttribute, temporaryId, silent: true
            success localsync(method, model, options)

        model.set model.idAttribute, null, silent: true
        onlineSync('create', model, options)
