diff --git a/src/java/org/archive/wayback/http11resourcestore/Http11ResourceStore.java b/src/java/org/archive/wayback/http11resourcestore/Http11ResourceStore.java
index <HASH>..<HASH> 100644
--- a/src/java/org/archive/wayback/http11resourcestore/Http11ResourceStore.java
+++ b/src/java/org/archive/wayback/http11resourcestore/Http11ResourceStore.java
@@ -104,9 +104,15 @@ public class Http11ResourceStore implements ResourceStore {
 		
 		// for now, we'll just grab the first one:
 		String arcUrl = arcUrls[0];
-		ARCReader ar = ARCReaderFactory.get(new URL(arcUrl),offset);
-		ARCRecord rec = ar.get();
-		Resource r = new Resource(rec,ar);
+		Resource r = null;
+		try {
+			ARCReader ar = ARCReaderFactory.get(new URL(arcUrl),offset);
+			ARCRecord rec = ar.get();
+			r = new Resource(rec,ar);
+		} catch (IOException e) {
+			throw new ResourceNotAvailableException("Unable to retrieve",
+					e.getLocalizedMessage());
+		}
 
 		return r;
BUGFIX: IOExceptions including HTTP errors, no route to host, etc were not being handled and wrapped as ResourceNotAvailable exceptions.


git-svn-id: <URL>