-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
port: [#4062] Log BadRequest in adapter (#6135) #265
Conversation
Pull Request Test Coverage Report for Build 1968954497
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be in cloudAdapter.ts, line 130.
Here we are already throwing a descriptive error.
if (!req.body.type) { | ||
console.warn('BadRequest: Missing activity or activity type.'); | ||
status = StatusCodes.BAD_REQUEST; | ||
return; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure of adding this here. In case of an error in parseRequest, would this code be reached?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but if i am adding this in the parserequest, how i will set bad request as a status?
Promoted to MS in PR# 4155 |
Fixes # 4062
#minor
Description
Add warn logger when the activity hasn't a type.
Specific Changes
Tests