write changesets to tracelog if an error occurs
authorRichard Fairhurst <richard@systemed.net>
Tue, 7 Dec 2010 00:14:23 +0000 (00:14 +0000)
committerRichard Fairhurst <richard@systemed.net>
Tue, 7 Dec 2010 00:14:23 +0000 (00:14 +0000)
net/systemeD/halcyon/connection/XMLConnection.as

index c0e81f7..c4e48db 100644 (file)
@@ -200,7 +200,7 @@ package net.systemeD.halcyon.connection {
             var loader:URLLoader = new URLLoader();
             loader.dataFormat = URLLoaderDataFormat.BINARY;
             loader.addEventListener(Event.COMPLETE, diffUploadComplete);
-            loader.addEventListener(IOErrorEvent.IO_ERROR, diffUploadError);
+            loader.addEventListener(IOErrorEvent.IO_ERROR, function(event:IOErrorEvent):void { trace(urlReq.data); diffUploadError(event); } );
             loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, recordStatus);
                loader.load(urlReq);