mirror of
https://github.com/dadosfera/maestro.git
synced 2026-08-31 19:58:21 +00:00
FIX: Pipeline delete
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
BadRequestException,
|
||||
HttpException,
|
||||
Inject,
|
||||
InternalServerErrorException,
|
||||
OnModuleInit,
|
||||
@@ -167,7 +168,11 @@ export class PipelinesService implements OnModuleInit {
|
||||
})
|
||||
.catch((err) => {
|
||||
this.logger.error(err.message);
|
||||
throw new Error(err);
|
||||
console.log(err);
|
||||
throw new HttpException(
|
||||
err.details,
|
||||
err.details === 'Erro ao pausar pipeline na plataforma.' ? 409 : 500,
|
||||
);
|
||||
});
|
||||
|
||||
return removePipelineResponse;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user