Index: common/config/impl/filesystem/fs.go |
diff --git a/common/config/impl/filesystem/fs.go b/common/config/impl/filesystem/fs.go |
index 4bcf6cd1f19537f4c66e45ba5d1fea24531ce36a..e23ac806d45d69c9d4666821ef369f13b245b2f6 100644 |
--- a/common/config/impl/filesystem/fs.go |
+++ b/common/config/impl/filesystem/fs.go |
@@ -185,16 +185,13 @@ func New(basePath string) (config.Interface, error) { |
return nil, err |
} |
if !inf.IsDir() { |
- return nil, (errors.Reason("filesystem.New(%(basePath)q): does not link to a directory"). |
- D("basePath", basePath).Err()) |
+ return nil, errors.Reason("filesystem.New(%q): does not link to a directory", basePath).Err() |
} |
if len(ret.basePath.explode()) < 1 { |
- return nil, (errors.Reason("filesystem.New(%(basePath)q): not enough tokens in path"). |
- D("basePath", basePath).Err()) |
+ return nil, errors.Reason("filesystem.New(%q): not enough tokens in path", basePath).Err() |
} |
} else if !inf.IsDir() { |
- return nil, (errors.Reason("filesystem.New(%(basePath)q): not a directory"). |
- D("basePath", basePath).Err()) |
+ return nil, errors.Reason("filesystem.New(%q): not a directory", basePath).Err() |
} |
return ret, nil |
} |