veyron.io/veyron/veyron/services/config/lib: Convert to verror2
This change uses verror2 instead of verror throughout
veyron.io/veyron/veyron/services/config/lib/config.go.
Tests in veyron.io/veyron/veyron/services/config/lib still pass.
The import statement renames "verror2" to "verror" so that the renaming that
will happen when we eliminate the old verror will be simpler.
I've replaced the existing error formats with custom error codes with very
similar formats to what was there before. Let me know if you'd prefer to use
generic error codes instead. The tradeoff is between messgaes customized for a particular
module, and more familiar error codes.
(For example, instead of using the custom code "errNoConfig" with the English
string "no config", I could use verror2.NoExist, which has the English message
"Does not exist", and thus does not contain the word "config".)
Change-Id: Ia8af80111c4a99f2cc1a29d2a94941a4784a0f98
1 file changed