@@ -81,17 +81,17 @@ func (cfg Config) validateParents(c path.ContextPath) report.Report {
8181 r := report.Report {}
8282
8383 for i , f := range cfg .Storage .Files {
84- r = handlePathConflict (f .Path , "files" , i , c , r , errors .ErrPathConflictsParentDir )
84+ r = handlePathConflict (f .Path , "files" , i , c , r , errors .ErrPathAlreadyExists )
8585 addPathAndEntry (f .Path , "files" , & entries )
8686 }
8787
8888 for i , d := range cfg .Storage .Directories {
89- r = handlePathConflict (d .Path , "directories" , i , c , r , errors .ErrPathConflictsParentDir )
89+ r = handlePathConflict (d .Path , "directories" , i , c , r , errors .ErrPathAlreadyExists )
9090 addPathAndEntry (d .Path , "directories" , & entries )
9191 }
9292
9393 for i , l := range cfg .Storage .Links {
94- r = handlePathConflict (l .Path , "links" , i , c , r , errors .ErrPathConflictsParentDir )
94+ r = handlePathConflict (l .Path , "links" , i , c , r , errors .ErrPathAlreadyExists )
9595 addPathAndEntry (l .Path , "links" , & entries )
9696 }
9797
@@ -102,7 +102,7 @@ func (cfg Config) validateParents(c path.ContextPath) report.Report {
102102 for i , entry := range entries {
103103 if i > 0 && isWithin (entry .Path , entries [i - 1 ].Path ) {
104104 if entries [i - 1 ].Field != "directories" {
105- r .AddOnError (c .Append ("storage" , entry .Field , i , "path" ), errors .ErrPathConflictsParentDir )
105+ r .AddOnError (c .Append ("storage" , entry .Field , i , "path" ), errors .ErrMisslabeledDir )
106106 return r
107107 }
108108 }
0 commit comments