From 48ac8c7bc40285f051ad41519d88f6d9325e926b Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Wed, 5 Jun 2019 11:15:40 +0200 Subject: [PATCH] Importer: hotfix errorhandling --- process/Importer_lib/process.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/process/Importer_lib/process.js b/process/Importer_lib/process.js index a693e85cf7..fe29134761 100644 --- a/process/Importer_lib/process.js +++ b/process/Importer_lib/process.js @@ -7,7 +7,6 @@ import("system.fileIO"); import("system.swing"); import("system.util"); import("system.text"); -import("ErrorHandling_lib"); import("ImporterCustomMappingFunctions_lib"); import("ImporterMappingFunctions_lib"); @@ -402,7 +401,7 @@ function Importer(pConfig) { logging.log(ex["rhinoException"] != undefined ? ex["rhinoException"] : ex) this.writeLog(this.LogLevels.Error, "Exception in mapping function [" + fname + "] for input row " + this.recordCounts.total+ " - " + this.Config.Mapping[i][1]["Target"]); - recordStack.exception = errorHandling.getClearMessage(ex)+ " - Column: " + this.Config.Mapping[i][1]["Target"]; + recordStack.exception = logging.toLogString(ex["rhinoException"] != undefined ? ex["rhinoException"] : ex, true) + " - Column: " + this.Config.Mapping[i][1]["Target"]; skip = true; } @@ -650,7 +649,7 @@ function Importer(pConfig) this.writeLog(this.LogLevels.Error, "Error at " + (insertSuccessfull ? "" : "Insert") + (updateSuccessfull ? "": "Update") + ":" + logging.toLogString(ex)); logging.log(ex["rhinoException"] != undefined ? ex["rhinoException"] : ex) this.recordCounts.skip++; - recordStack.exception = errorHandling.getClearMessage(ex); + recordStack.exception = logging.toLogString(ex["rhinoException"] != undefined ? ex["rhinoException"] : ex, true); if(this.insertArray.length > 0 && !insertSuccessfull) { this.writeLog(this.LogLevels.Info, "Insert array: " + JSON.stringify(this.insertArray, null, " ")); -- GitLab