[Swift-commit] cog r3425

swift at ci.uchicago.edu swift at ci.uchicago.edu
Mon Jul 9 23:15:04 CDT 2012


------------------------------------------------------------------------
r3425 | hategan | 2012-07-09 23:10:49 -0500 (Mon, 09 Jul 2012) | 1 line

make sure a valid (non-null) exception makes it to the callback
------------------------------------------------------------------------
Index: modules/provider-coaster/src/org/globus/cog/abstraction/impl/file/coaster/handlers/providers/ProxyIOProvider.java
===================================================================
--- modules/provider-coaster/src/org/globus/cog/abstraction/impl/file/coaster/handlers/providers/ProxyIOProvider.java	(revision 3424)
+++ modules/provider-coaster/src/org/globus/cog/abstraction/impl/file/coaster/handlers/providers/ProxyIOProvider.java	(working copy)
@@ -347,7 +347,17 @@
         	    }
         	}
         	else {
-        	    cb.error(this, t);
+        	    if (msg == null) {
+        	        cb.error(this, t);
+        	    }
+        	    else {
+        	        if (t == null) {
+        	            cb.error(this, new IOException(msg));
+        	        }
+        	        else {
+        	            cb.error(this, new IOException(msg, t));
+        	        }
+        	    }
         	}
         }
 



More information about the Swift-commit mailing list