diff --git a/htroot/IndexImport_p.html b/htroot/IndexImport_p.html index 2ff058b66..6906d8dca 100644 --- a/htroot/IndexImport_p.html +++ b/htroot/IndexImport_p.html @@ -18,6 +18,9 @@

#[error_msg]#

::

Import Job with the same path already started.

+ :: +

#[error_msg]#

+

#[error_stackTrace]#

#(/error)#

Starting new Job

diff --git a/htroot/IndexImport_p.java b/htroot/IndexImport_p.java index 6ce30b34c..7227d54a7 100644 --- a/htroot/IndexImport_p.java +++ b/htroot/IndexImport_p.java @@ -49,12 +49,14 @@ //if the shell's current path is HTROOT import java.io.File; +import java.io.PrintStream; import java.util.Date; import java.util.Vector; import de.anomic.http.httpHeader; import de.anomic.plasma.plasmaDbImporter; import de.anomic.plasma.plasmaSwitchboard; +import de.anomic.server.serverByteBuffer; import de.anomic.server.serverDate; import de.anomic.server.serverObjects; import de.anomic.server.serverSwitch; @@ -93,10 +95,17 @@ public final class IndexImport_p { prop.put("LOCATION",""); return prop; - } - } catch (Exception e) { - prop.put("error",1); + } + } catch (Exception e) { + serverByteBuffer errorMsg = new serverByteBuffer(100); + PrintStream errorOut = new PrintStream(errorMsg); + e.printStackTrace(errorOut); + + prop.put("error",3); prop.put("error_error_msg",e.toString()); + prop.put("error_error_stackTrace",errorMsg.toString().replaceAll("\n","
")); + + errorOut.close(); } } else if (post.containsKey("clearFinishedJobList")) { plasmaDbImporter.finishedJobs.clear();