fix prefix length in error message

Fixes #711
This commit is contained in:
Harald Sitter committed 2018-03-07 12:44:01 +01:00
1 parent 581876df9a
commit 0f1fd1bca6
2 files changed
+87 -1

No files matched your search

+1 -1
View File
@@ -333,7 +333,7 @@ func (context *AptlyContext) GetPublishedStorage(name string) aptly.PublishedSto
} else if strings.HasPrefix(name, "filesystem:") {
params, ok := context.config().FileSystemPublishRoots[name[11:]]
if !ok {
Fatal(fmt.Errorf("published local storage %v not configured", name[6:]))
Fatal(fmt.Errorf("published local storage %v not configured", name[11:]))
}
publishedStorage = files.NewPublishedStorage(params.RootDir, params.LinkMethod, params.VerifyMethod)