Skip to content
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

Several small improvements to error reporting: #976

Merged
merged 1 commit into from
Nov 20, 2015

Conversation

cramforce
Copy link
Member

  • Use the application name to make filtering by assert possible.
  • Return HTTP 204 as appropriate.
  • better handling for case of no error message.

- Use the application name to make filtering by assert possible.
- Return HTTP 204 as appropriate.
- better handling for case of no error message.
@@ -99,13 +99,17 @@ func handle(w http.ResponseWriter, r *http.Request) {

// Fill query params into JSON struct.
line, _ := strconv.Atoi(r.URL.Query().Get("l"))
errorType := "default"
if r.URL.Query().Get("a") == "1" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qq, what does a stand for here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That the error came from an assert. Thought it was obvious given the thing that happens next.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i did infer it. just wanted to make sure :)

@erwinmombay
Copy link
Member

LGTM

cramforce added a commit that referenced this pull request Nov 20, 2015
Several small improvements to error reporting:
@cramforce cramforce merged commit 55e6b1c into ampproject:master Nov 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants