From: Sasa M. <sa...@us...> - 2004-12-21 08:33:09
|
Update of /cvsroot/jrobin/src/org/jrobin/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv485/org/jrobin/core Modified Files: Header.java Log Message: Minor improvement (idea from http://www.jrobin.org/phpBB2/viewtopic.php?t=103) Index: Header.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/Header.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Header.java 9 Nov 2004 11:36:53 -0000 1.8 --- Header.java 21 Dec 2004 08:32:54 -0000 1.9 *************** *** 182,186 **** void validateHeader() throws IOException, RrdException { if(!isJRobinHeader()) { ! throw new RrdException("Not a JRobin RRD!"); } } --- 182,187 ---- void validateHeader() throws IOException, RrdException { if(!isJRobinHeader()) { ! String msg = "Invalid file header. File [" + parentDb.getCanonicalPath() + "] is not a JRobin RRD file"; ! throw new RrdException(msg); } } |