store/server: normalized error messages/formatting

This commit is contained in:
Leo Balduf
2016-03-11 21:12:43 +01:00
parent 1ba0f92ceb
commit eca7d9ee72
5 changed files with 7 additions and 10 deletions
+1 -4
View File
@@ -39,10 +39,7 @@ func Register(name string, con Constructor) {
func New(cfg *chihaya.ServerConfig, tkr *tracker.Tracker) (Server, error) {
con, ok := constructors[cfg.Name]
if !ok {
return nil, fmt.Errorf(
"server: unknown Constructor %q (forgotten import?)",
cfg.Name,
)
return nil, fmt.Errorf("server: unknown Constructor %q (forgotten import?)", cfg.Name)
}
return con(cfg, tkr)
}