From 4f24960af760e8f143200818fb5ed4764b751f12 Mon Sep 17 00:00:00 2001 From: bouhmarc Date: Tue, 27 Jul 2021 16:56:04 +0200 Subject: [PATCH] Corretion du log --- DownloadDocuments.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/DownloadDocuments.js b/DownloadDocuments.js index a5f8700..e048860 100644 --- a/DownloadDocuments.js +++ b/DownloadDocuments.js @@ -39,12 +39,13 @@ function DownloadDocuments(sNomPlugin) 'node ' + __dirname + '/DownloadDocument_StandAlone.js "'+sNomFichier + '"', {stdio: 'pipe'}) - const nIndice = sSTDIO.indexOf("critical") + var nIndice = sSTDIO.indexOf("critical") if (nIndice) - console.log('ERREUR : ' + sSTDIO[nIndice]) - bErreur = true - + { + console.log('ERREUR : ' + sSTDIO.toString('utf8', nIndice, sSTDIO.indexOf('\n', nIndice))) + + } console.log('----------------------------------------------------------------------') console.log('Fin du connecteur ' + stUnElement.name) console.log('----------------------------------------------------------------------')