Skip to content

Improve error message for config parsing error #30

@nevo

Description

@nevo

It's not a big deal for developers, but for ordinary user, when you change some config name to unexpected/unknown string, the error message is not easily understandable.

for example, you change "http-addr" to "this is bad name" in config.yaml, then you'll get the error:

Nevos-MacBook-Pro:gosnow nevo$ uniqush-conn -config=config.yaml -key=key.pem -port=8964 Config error: [service=this is bad] Service information should be a map

we probably should say something like:

Config error: unknown service name: this is bad

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions