Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Issue 1820863002: Update callers of httputils.ReportError to specify message (Closed)

Created:
4 years, 9 months ago by rmistry
Modified:
4 years, 9 months ago
Reviewers:
jcgregorio, dogben, stephana
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/buildbot@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Update callers of httputils.ReportError to specify message. Use "Unknown error" when message is not specified so that the error toast is never blank. Context is in https://bugs.chromium.org/p/chromium/issues/detail?id=596183#c9 BUG=chromium:596183 Committed: https://skia.googlesource.com/buildbot/+/ace4c3c09b2c97d0fcf045d727473665348e4bf8

Patch Set 1 : Initial upload #

Patch Set 2 : Nit #

Patch Set 3 : Check for nil err #

Patch Set 4 : Update callers with missing msgs #

Patch Set 5 : Add documentation #

Patch Set 6 : Nit #

Patch Set 7 : Do not duplicate fmt.Errorf and message #

Total comments: 2

Patch Set 8 : Remove taskID #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -38 lines) Patch
M ct/go/ctfe/chromium_builds/chromium_builds.go View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M ct/go/ctfe/chromium_perf/chromium_perf.go View 1 2 3 4 5 3 chunks +8 lines, -8 lines 0 comments Download
M ct/go/ctfe/task_common/task_common.go View 1 2 3 4 5 6 7 6 chunks +12 lines, -12 lines 0 comments Download
M datahopper_internal/go/datahopper_internal/main.go View 1 2 3 4 5 6 8 chunks +12 lines, -12 lines 0 comments Download
M go/httputils/http.go View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M push/go/push/main.go View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820863002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820863002/40001
4 years, 9 months ago (2016-03-21 14:04:44 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 14:07:35 UTC) #4
rmistry
4 years, 9 months ago (2016-03-21 14:08:09 UTC) #6
rmistry
4 years, 9 months ago (2016-03-21 14:13:23 UTC) #8
jcgregorio
On 2016/03/21 at 14:13:23, rmistry wrote: > The point of the security bug was that ...
4 years, 9 months ago (2016-03-21 14:46:44 UTC) #9
jcgregorio
4 years, 9 months ago (2016-03-21 14:46:50 UTC) #10
rmistry
On 2016/03/21 14:46:44, jcgregorio wrote: > On 2016/03/21 at 14:13:23, rmistry wrote: > > > ...
4 years, 9 months ago (2016-03-21 14:48:07 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820863002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820863002/80001
4 years, 9 months ago (2016-03-21 18:01:32 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 18:04:22 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820863002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820863002/100001
4 years, 9 months ago (2016-03-21 18:05:12 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 18:08:03 UTC) #19
rmistry
PTAL. Also added Ben for CTFE sanity check.
4 years, 9 months ago (2016-03-21 18:10:41 UTC) #22
jcgregorio
lgtm
4 years, 9 months ago (2016-03-21 18:15:39 UTC) #23
dogben
nit: rather than duplicating message in fmt.Errorf and message, just pass nil for err.
4 years, 9 months ago (2016-03-21 18:19:00 UTC) #24
dogben
On 2016/03/21 at 18:19:00, Ben Wagner wrote: > nit: rather than duplicating message in fmt.Errorf ...
4 years, 9 months ago (2016-03-21 18:22:30 UTC) #25
rmistry
On 2016/03/21 18:19:00, Ben Wagner wrote: > nit: rather than duplicating message in fmt.Errorf and ...
4 years, 9 months ago (2016-03-21 18:36:02 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820863002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820863002/120001
4 years, 9 months ago (2016-03-21 18:36:10 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 18:39:01 UTC) #30
dogben
One comment, otherwise LGTM. https://codereview.chromium.org/1820863002/diff/120001/ct/go/ctfe/task_common/task_common.go File ct/go/ctfe/task_common/task_common.go (right): https://codereview.chromium.org/1820863002/diff/120001/ct/go/ctfe/task_common/task_common.go#newcode218 ct/go/ctfe/task_common/task_common.go:218: httputils.ReportError(w, r, nil, fmt.Sprintf("Could not ...
4 years, 9 months ago (2016-03-21 18:54:39 UTC) #31
rmistry
https://codereview.chromium.org/1820863002/diff/120001/ct/go/ctfe/task_common/task_common.go File ct/go/ctfe/task_common/task_common.go (right): https://codereview.chromium.org/1820863002/diff/120001/ct/go/ctfe/task_common/task_common.go#newcode218 ct/go/ctfe/task_common/task_common.go:218: httputils.ReportError(w, r, nil, fmt.Sprintf("Could not find %s task with ...
4 years, 9 months ago (2016-03-21 18:56:42 UTC) #32
dogben
On 2016/03/21 at 18:56:42, rmistry wrote: > https://codereview.chromium.org/1820863002/diff/120001/ct/go/ctfe/task_common/task_common.go > File ct/go/ctfe/task_common/task_common.go (right): > > https://codereview.chromium.org/1820863002/diff/120001/ct/go/ctfe/task_common/task_common.go#newcode218 ...
4 years, 9 months ago (2016-03-21 19:00:28 UTC) #33
rmistry
On 2016/03/21 19:00:28, Ben Wagner wrote: > On 2016/03/21 at 18:56:42, rmistry wrote: > > ...
4 years, 9 months ago (2016-03-21 19:04:03 UTC) #34
dogben
lgtm
4 years, 9 months ago (2016-03-21 19:33:36 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820863002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820863002/140001
4 years, 9 months ago (2016-03-21 19:47:02 UTC) #38
commit-bot: I haz the power
4 years, 9 months ago (2016-03-21 19:53:16 UTC) #40
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/buildbot/+/ace4c3c09b2c97d0fcf045d727473665348e...

Powered by Google App Engine
This is Rietveld 408576698