admin/sync: hide full URI from error message

This commit is contained in:
nemunaire 2017-12-12 09:19:55 +01:00 committed by Pierre-Olivier Mercier
parent 1ab94862d0
commit 68bb0e6b21

View File

@ -58,7 +58,7 @@ func getFile(i Importer, URI string, writer *bufio.Writer) error {
}
}
return errors.New(fmt.Sprintf("%q: no such file or directory", i.toURL(URI)))
return errors.New(fmt.Sprintf("%q: no such file or directory", URI))
}
func getFileContent(i Importer, URI string) (string, error) {