node-r3trans
Advanced tools
Comparing version 1.4.6 to 1.4.7
@@ -85,2 +85,5 @@ "use strict"; | ||
if (error.code === 1) { //program not started | ||
if (logFile) { | ||
logFile.dispose(); | ||
} | ||
rej(new Error(`Couldn't start R3trans in directory "${this.r3transDirPath}".`)); | ||
@@ -107,4 +110,14 @@ } | ||
//TODO: this can be handled better -> print stdout (it's cutting off right now) | ||
if (logFile) { | ||
logFile.dispose(); | ||
} | ||
rej(new Error(`Couldn't execute R3trans command.\nThis error might be caused by missing ICU common library.`)); | ||
} | ||
else { | ||
res({ | ||
code: 4, | ||
output: stdout, | ||
logFile | ||
}); | ||
} | ||
} | ||
@@ -111,0 +124,0 @@ else { |
{ | ||
"name": "node-r3trans", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"description": "NodeJs wrapper for SAP R3trans program", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
34650
776