add a PANIC message
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2708 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
109ca3ffc7
commit
3cfb242e6e
|
@ -21,7 +21,6 @@ import com.ibm.wala.util.debug.Assertions;
|
||||||
import com.ibm.wala.util.debug.UnimplementedError;
|
import com.ibm.wala.util.debug.UnimplementedError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* A module which is a wrapper around a file in the filesystem
|
* A module which is a wrapper around a file in the filesystem
|
||||||
*
|
*
|
||||||
* @author sfink
|
* @author sfink
|
||||||
|
@ -81,6 +80,9 @@ public abstract class FileModule implements Module, ModuleEntry {
|
||||||
*/
|
*/
|
||||||
public InputStream getInputStream() {
|
public InputStream getInputStream() {
|
||||||
try {
|
try {
|
||||||
|
if (!file.exists()) {
|
||||||
|
System.err.println("PANIC: File does not exist! " + file);
|
||||||
|
}
|
||||||
return new FileInputStream(file);
|
return new FileInputStream(file);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
Loading…
Reference in New Issue