chentao / gcfg

Automatically exported from code.google.com/p/gcfg
Other
0 stars 0 forks source link

Error messages should be human readable #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. For example try to parse a string "X" to field with type "int".
2. Observe the following error message:

failed to parse "X" as &reflect.commonType{size:0x4, hash:0xd5b87712, _:0x0, 
align:0x4, fieldAlign:0x4, kind:0x87, alg:(*uintptr)(0x811eb8), 
string:(*string)(0x69c548), uncommonType:(*reflect.uncommonType)(0x593950), 
ptrToThis:(*reflect.runtimeType)(0x58bf70)}: parse error expected integer

What is the expected output? What do you see instead?

failed to parse "X" as uint: parse error expected integer

What version of the product are you using? On what operating system?

head

Please provide any additional information below.

A simple patch is attached.

Original issue reported on code.google.com by snabb@epipe.com on 17 Feb 2013 at 7:06

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision c0a80d0c3e98.

Original comment by speter....@gmail.com on 18 Feb 2013 at 2:01

GoogleCodeExporter commented 9 years ago
Thank you for reporting.

Original comment by speter....@gmail.com on 18 Feb 2013 at 2:04