Skip to content

Commit a7d2ac3

Browse files
committed
Update http-exception.filter.ts
1 parent 49d5485 commit a7d2ac3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/http-exception.filter.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ export class HttpExceptionFilter implements ExceptionFilter {
4545
message = message.includes('build.update()')
4646
? 'There is already a build with this ci build id.'
4747
: message.includes('project.create()')
48-
? 'Project exists with this name.'
49-
: message.includes('user.create()')
50-
? 'This user already exists.'
51-
: message.includes('Forbidden resource')
52-
? 'You do not have permission to perform this operation.'
53-
: message;
48+
? 'Project exists with this name.'
49+
: message.includes('user.create()')
50+
? 'This user already exists.'
51+
: message.includes('Forbidden resource')
52+
? 'You do not have permission to perform this operation.'
53+
: message;
5454
return message;
5555
}
5656
}

0 commit comments

Comments
 (0)