kubo/commands
Brian Tiger Chow ef0826acd6 fix(commands/err)
I didn't know there were dragons here.

When casting errors we've gotta be careful. Apparently both values and
pointers satisfy the error interface. Type checking for one doesn't
catch the other.

cc @whyrusleeping @mappum @jbenet

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:07 -08:00
..
cli commands/cli: Made Parse return an error if request has unrecognized options 2014-11-14 03:20:06 -08:00
http commands/cli,http: Properly preserve argument value count when checking argument validity 2014-11-14 03:20:04 -08:00
argument.go commands: Added Argument helper constructors 2014-11-14 03:17:39 -08:00
command_test.go commands: Changed option accessor API (Request#Option now returns an OptionValue) 2014-11-14 03:17:38 -08:00
command.go fix(commands/err) 2014-11-14 03:20:07 -08:00
option_test.go tests(commands/option) test the OptionValue methods 2014-11-14 03:19:57 -08:00
option.go fix(commands/optionvalue) use the util.ErrCast() 2014-11-14 03:19:59 -08:00
request.go fix(commands/request) return err when unable to load config/node due to 2014-11-14 03:20:04 -08:00
response_test.go commands: Changed option accessor API (Request#Option now returns an OptionValue) 2014-11-14 03:17:38 -08:00
response.go cmd2: Marshaller -> Marshaler (see golang/encoding) 2014-11-14 03:20:05 -08:00