From 00fda119478c715878e724d0de3cda557d01de02 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Thu, 19 Aug 2004 19:06:46 +0000 Subject: [PATCH] Log if unable to open a File. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276791 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/util/ConcatFileInputStream.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/util/ConcatFileInputStream.java b/src/main/org/apache/tools/ant/util/ConcatFileInputStream.java index d7a6e9d98..6bac68ee8 100755 --- a/src/main/org/apache/tools/ant/util/ConcatFileInputStream.java +++ b/src/main/org/apache/tools/ant/util/ConcatFileInputStream.java @@ -99,8 +99,13 @@ public class ConcatFileInputStream extends InputStream { closeCurrent(); if (file != null && index < file.length) { log("Opening " + file[index], Project.MSG_VERBOSE); - currentStream = new BufferedInputStream( - new FileInputStream(file[index])); + try { + currentStream = new BufferedInputStream( + new FileInputStream(file[index])); + } catch (IOException eyeOhEx) { + log("Failed to open " + file[index], Project.MSG_ERR); + throw eyeOhEx; + } } else { eof = true; }