[metacat-cvs] metacat/src/edu/ucsb/nceas/metacat MetaCatServlet.java
Jing Tao
tao at ecoinformatics.org
Tue Nov 22 17:44:30 PST 2005
tao 05/11/22 17:44:30
Modified: src/edu/ucsb/nceas/metacat MetaCatServlet.java
Log:
Fixed a log bug.
Revision Changes Path
1.240 +5 -4 metacat/src/edu/ucsb/nceas/metacat/MetaCatServlet.java
Index: MetaCatServlet.java
===================================================================
RCS file: /cvs/metacat/src/edu/ucsb/nceas/metacat/MetaCatServlet.java,v
retrieving revision 1.239
retrieving revision 1.240
diff -u -r1.239 -r1.240
--- MetaCatServlet.java 17 Nov 2005 21:27:21 -0000 1.239
+++ MetaCatServlet.java 23 Nov 2005 01:44:29 -0000 1.240
@@ -6,9 +6,9 @@
* Authors: Matt Jones, Dan Higgins, Jivka Bojilova, Chad Berkley
* Release: @release@
*
- * '$Author: sgarg $'
- * '$Date: 2005/11/17 21:27:21 $'
- * '$Revision: 1.239 $'
+ * '$Author: tao $'
+ * '$Date: 2005/11/23 01:44:29 $'
+ * '$Revision: 1.240 $'
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -2995,7 +2995,8 @@
int rev = DBUtil.getLatestRevisionInDocumentTable(docid);
if (rev == -1)
{
- throw new Exception("Couldn't find the document "+docid);
+ throw new Exception("the requested docid '"
+ + docid+ "' does not exist");
}
else
{
@@ -3007,7 +3008,7 @@
// in other suituation we don't change the docid
newAccNum = docid;
}
- logMetacat.debug("The docid will be read is "+newAccNum);
+ //logMetacat.debug("The docid will be read is "+newAccNum);
return newAccNum;
}
}
More information about the Metacat-cvs
mailing list