FIX: Pipeline delete

This commit is contained in:
Victor Radael
2022-10-27 18:20:56 -03:00
parent d52f8b78c8
commit 4a8a8eb463
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -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
View File
File diff suppressed because one or more lines are too long