-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix: don't include error in response #2178
Conversation
@@ -18,6 +18,8 @@ import ( | |||
"github.com/TBD54566975/ftl/internal/model" | |||
) | |||
|
|||
const internalServerError = "Internal Server Error" |
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.
An open question is if we want to include this message or just an empty string.
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.
const internalServerError = "Internal Server Error" | |
const internalServerError = http.StatusText(http.StatusInternalServerError) |
(or inline that call elsewhere)
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 don't think that compiles, I would need to inline it
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.
Although it did make me realize I am sending the wrong message in some places
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.
Make it var ..
to compile.
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 inlined it as some of the messages were for different response codes
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.
Noice
f1ed4d5
to
2c4e970
Compare
2c4e970
to
efcc46f
Compare
Also make sure we log errors related to HTTP processing. closes #2162
efcc46f
to
d2b9fe9
Compare
Also make sure we log errors related to HTTP processing.
closes #2162