Skip to content

Commit

Permalink
Improved batch exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisszmundy committed Oct 23, 2024
1 parent 1db88f0 commit 819098b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import fr.insee.kraftwerk.api.process.MainProcessing;
import fr.insee.kraftwerk.api.process.MainProcessingGenesis;
import fr.insee.kraftwerk.api.services.KraftwerkService;
import fr.insee.kraftwerk.core.exceptions.KraftwerkException;
import fr.insee.kraftwerk.core.utils.files.MinioImpl;
import io.minio.MinioClient;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -83,6 +84,9 @@ public void run(String... args) {
}
System.exit(0);
}
}catch (KraftwerkException ke) {
log.error("Kraftwerk exception caught : Code {}, {}", ke.getStatus(), ke.getMessage());
System.exit(1);
}catch(Exception e){
log.error(e.toString());
System.exit(1);
Expand Down

0 comments on commit 819098b

Please sign in to comment.