Return type.Error instead of plain error
authorGhe Rivero <ghe.rivero@gmail.com>
Thu, 16 Mar 2017 22:46:09 +0000 (23:46 +0100)
committerGhe Rivero <ghe.rivero@hpe.com>
Sat, 18 Mar 2017 09:43:02 +0000 (10:43 +0100)
commite00a6475040dfc05e80223630ac0fac8d9a4c2d3
treeb6a326a77cb009ee2c0839f55ddd4c4097291c46
parentc235b448d4de3d5093c68d23d2623b2bbf6e3a52
Return type.Error instead of plain error

This way, we can use Error.Code attribute to check error type without
needing to regexp the message string
pkg/invoke/raw_exec.go
pkg/types/types.go