Closed anson627 closed 9 years ago
I think @Willyham meant to expose the file read error, which is different from this PR. Not sure merging hostPortFile into hostPortList is a good idea. hostPortList by its name is a list/array
Exposing error is part of this PR. The other part is to simplify the interface, having two parameter for the same thing make it hard to use. For example, xlate has hostPortFile in config file, if I want to overwrite it by passing --config hostPortFile [localhost:21300]. I need write code like this: if (Array.isArray(hostPortFile)), call constructor with hostPortList, otherwise, call with hostPortFile.
:-1: This is confusing.
Let's have type stability and two arguments.
Please split this into two commits or two PRs.
The improved error messages are :+1:
Will do the split.
one comment. Otherwise, lgtm.
To fix #1275 Host port file reading and parsing error need be exposed to users.
@Willyham @ShanniLi @Raynos