fix prefix length in error message

Fixes #711
This commit is contained in:
Harald Sitter
2018-03-07 12:44:01 +01:00
parent 581876df9a
commit 0f1fd1bca6
2 changed files with 87 additions and 1 deletions
+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)