         }
         
         let jsonResult : Result<JSON, EventError> = parseJSONFromData(result.value!)
-        if let error = result.error {
+        if let error = jsonResult.error {
             completeBlock(result: Result<String, EventError>(error: error))
             return
         }

        }
        
        let jsonResult : Result<JSON, EventError> = parseJSONFromData(result.value!)
        if let error = result.error {
            completeBlock(result: Result<Event, EventError>(error: error))
            return
        }

        }
        
        let jsonResult : Result<JSON, EventError> = parseJSONFromData(result.value!)
        if let error = jsonResult.error {
            completeBlock(result: Result<[EventViewModel], EventError>(error: error))
            return
        }
