Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(441)

Issue 51280045: Better error message for invalid keys in config

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by abel.deuring
Modified:
10 years, 3 months ago
Reviewers:
mue, dimitern, mp+201417
Visibility:
Public.

Description

Better error message for invalid keys in config This is a fix for bug 1117173: Validating config could have better errors. Using the common error formatting function error_() does not make sense for invalid keys, I think, so just used fmt.Errorf(). https://code.launchpad.net/~adeuring/juju-core/1117173/+merge/201417 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : Better error message for invalid keys in config #

Patch Set 3 : Better error message for invalid keys in config #

Total comments: 4

Patch Set 4 : Better error message for invalid keys in config #

Total comments: 6

Patch Set 5 : Better error message for invalid keys in config #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -13 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M schema/schema.go View 1 2 3 4 2 chunks +20 lines, -12 lines 0 comments Download
M schema/schema_test.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12
abel.deuring
Please take a look.
10 years, 3 months ago (2014-01-13 14:07:16 UTC) #1
dimitern
Looks OK, just a few suggestions. https://codereview.appspot.com/51280045/diff/1/schema/schema.go File schema/schema.go (right): https://codereview.appspot.com/51280045/diff/1/schema/schema.go#newcode30 schema/schema.go:30: func spath(path []string) ...
10 years, 3 months ago (2014-01-13 14:14:23 UTC) #2
mue
https://codereview.appspot.com/51280045/diff/1/schema/schema.go File schema/schema.go (right): https://codereview.appspot.com/51280045/diff/1/schema/schema.go#newcode30 schema/schema.go:30: func spath(path []string) string { On 2014/01/13 14:14:23, dimitern ...
10 years, 3 months ago (2014-01-13 15:00:27 UTC) #3
abel.deuring
Please take a look.
10 years, 3 months ago (2014-01-14 12:24:28 UTC) #4
abel.deuring
Please take a look.
10 years, 3 months ago (2014-01-14 12:29:05 UTC) #5
mue
https://codereview.appspot.com/51280045/diff/40001/schema/schema.go File schema/schema.go (right): https://codereview.appspot.com/51280045/diff/40001/schema/schema.go#newcode32 schema/schema.go:32: func path_as_string(path []string) string { Naming convention in Go ...
10 years, 3 months ago (2014-01-14 12:56:43 UTC) #6
abel.deuring
https://codereview.appspot.com/51280045/diff/40001/schema/schema.go File schema/schema.go (right): https://codereview.appspot.com/51280045/diff/40001/schema/schema.go#newcode32 schema/schema.go:32: func path_as_string(path []string) string { On 2014/01/14 12:56:44, mue ...
10 years, 3 months ago (2014-01-14 13:08:16 UTC) #7
abel.deuring
Please take a look.
10 years, 3 months ago (2014-01-14 15:09:58 UTC) #8
mue
https://codereview.appspot.com/51280045/diff/50001/schema/schema.go File schema/schema.go (right): https://codereview.appspot.com/51280045/diff/50001/schema/schema.go#newcode30 schema/schema.go:30: // Return a string consisting of the path elements. ...
10 years, 3 months ago (2014-01-15 08:06:52 UTC) #9
abel.deuring
https://codereview.appspot.com/51280045/diff/50001/schema/schema.go File schema/schema.go (right): https://codereview.appspot.com/51280045/diff/50001/schema/schema.go#newcode30 schema/schema.go:30: // Return a string consisting of the path elements. ...
10 years, 3 months ago (2014-01-15 10:50:28 UTC) #10
abel.deuring
Please take a look.
10 years, 3 months ago (2014-01-15 13:18:31 UTC) #11
mue
10 years, 3 months ago (2014-01-15 13:19:44 UTC) #12
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b