Standardized error message formatting

This commit is contained in:
2024-09-14 16:09:20 +03:00
parent 7b491874eb
commit 108e355e94
3 changed files with 48 additions and 48 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ func GetRepositoryEntry(str string) (*RepositoryEntry, *Repository, error) {
func (repo *Repository) FetchPackage(pkg string) (string, error) {
if !repo.ContainsPackage(pkg) {
return "", errors.New("Could not fetch package '" + pkg + "'")
return "", errors.New("could not fetch package '" + pkg + "'")
}
entry := repo.Entries[pkg]
URL, err := url.JoinPath(repo.Source, entry.Download)