Skip to content

Commit

Permalink
Gestion des erreurs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouhmarc committed Jul 27, 2021
1 parent 8be47bf commit 100c7e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions DownloadDocuments.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ function DownloadDocuments(sNomPlugin)
'node ' + __dirname + '/DownloadDocument_StandAlone.js "'+sNomFichier + '"',
{stdio: 'pipe'})

const nIndice = sSTDIO.indexOf("critical")

if (nIndice)
console.log('ERREUR : ' + sSTDIO[nIndice])
bErreur = true

console.log('----------------------------------------------------------------------')
console.log('Fin du connecteur ' + stUnElement.name)
console.log('----------------------------------------------------------------------')
Expand All @@ -47,6 +53,7 @@ function DownloadDocuments(sNomPlugin)
console.log('----------------------------------------------------------------------')
console.log( "Erreur lors de l'exécution du connecteur "+stUnElement.name)
console.log('----------------------------------------------------------------------')
bErreur = true
}
}

Expand Down

0 comments on commit 100c7e9

Please sign in to comment.